/* Auth Pages Shared Styles */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

body.dark-mode {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%);
    color: #fff;
}

.background-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    max-width: 80%;
    z-index: -1;
}

.auth-container {
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    position: relative;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.light-mode .auth-container {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dark-mode .auth-container {
    background: #2c3e50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    max-width: 150px;
    height: auto;
}

h2 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating input {
    border-radius: 8px;
    padding: 15px;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.light-mode .form-floating input {
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
}

.dark-mode .form-floating input {
    border: 1px solid #4a5568;
    background-color: #2c3e50;
    color: #fff;
}

.form-floating label {
    padding: 15px;
}

.dark-mode .form-floating label {
    color: #cbd5e0;
}

.auth-button {
    border: none;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    font-weight: 500;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.links {
    margin-top: 20px;
    font-size: 14px;
}

.light-mode .links a {
    color: #007bff;
}

.dark-mode .links a {
    color: #63b3ed;
}

.links a {
    text-decoration: none;
    transition: color 0.3s;
}

.links a:hover {
    opacity: 0.8;
}

.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 0.3s;
}

.light-mode .form-icon {
    color: #6c757d;
}

.dark-mode .form-icon {
    color: #cbd5e0;
}

.password-container {
    position: relative;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: inherit;
    transition: color 0.3s;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 15px;
    right: 15px;
}

.language-selector .btn {
    padding: 5px 10px;
    background: transparent;
    border: 1px solid;
    transition: border-color 0.3s;
}

.light-mode .language-selector .btn {
    border-color: #ddd;
}

.dark-mode .language-selector .btn {
    border-color: #4a5568;
}

.language-selector img {
    width: 20px;
    height: 15px;
    margin-right: 5px;
}

/* Form Row for Register Page */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row > div {
    flex: 1;
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Custom styles for dark mode dropdowns */
.dark-mode .dropdown-menu {
    background-color: #2c3e50;
    border-color: #4a5568;
}

.dark-mode .dropdown-item {
    color: #fff;
}

.dark-mode .dropdown-item:hover {
    background-color: #3c4c5f;
}

/* Authentication Pages Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --auth-bg-light: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --auth-bg-dark: linear-gradient(135deg, #1f2a39 0%, #1a1e2a 100%);
    --auth-card-light: rgba(255, 255, 255, 0.95);
    --auth-card-dark: rgba(30, 35, 45, 0.95);
    --auth-text-light: #333;
    --auth-text-dark: #f0f0f0;
}

body {
    background: var(--auth-bg-light);
    color: var(--auth-text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background 0.3s, color 0.3s;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body.dark-mode {
    background: var(--auth-bg-dark);
    color: var(--auth-text-dark);
}

.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: var(--auth-card-light);
    transition: background 0.3s, box-shadow 0.3s;
}

body.dark-mode .auth-card {
    background-color: var(--auth-card-dark);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.auth-logo h2 {
    font-size: 22px;
    margin: 0;
    font-weight: 600;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.auth-form .form-label {
    font-weight: 500;
}

.auth-form .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: #6c757d;
}

body.dark-mode .auth-form .input-group-text {
    background-color: #343a40;
    color: #adb5bd;
    border-color: #495057;
}

.auth-form .form-control {
    border-left: none;
}

body.dark-mode .auth-form .form-control {
    background-color: #343a40;
    color: #f0f0f0;
    border-color: #495057;
}

.auth-form .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

body.dark-mode .auth-form .form-control:focus {
    border-color: #495057;
}

.password-toggle {
    cursor: pointer;
    border-left: none;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.links {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 0 5px;
}

.links a:hover {
    opacity: 0.8;
}

body.dark-mode .links a {
    color: #6ea8fe;
}

.dark-mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.dark-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.dark-mode .dark-mode-toggle {
    color: #f0f0f0;
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.back-link {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.language-selector {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px;
}

.lang-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 3px;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
    background: var(--primary-color);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 25px;
    }
    
    .auth-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .dark-mode-toggle,
    .language-selector {
        position: static;
        margin-bottom: 20px;
    }
    
    .auth-container {
        padding-top: 30px;
    }
    
    .language-selector {
        margin-right: auto;
    }
    
    .dark-mode-toggle {
        margin-left: auto;
    }
} 