/* Authentication Pages Styles */

.main-content {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-group input:valid:not(:focus):not(:placeholder-shown) {
    border-color: #28a745;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background-color: #e1e5e9;
    border-radius: 2px;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
}

.strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-bar.weak::after {
    width: 33%;
    background-color: #dc3545;
}

.strength-bar.medium::after {
    width: 66%;
    background-color: #ffc107;
}

.strength-bar.strong::after {
    width: 100%;
    background-color: #28a745;
}

.strength-text {
    font-size: 0.75rem;
    color: #666;
}

.form-options {
    margin: 1.5rem 0;
}

.form-options .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.4;
}

.form-options .checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: auto;
}

.forgot-password:hover {
    text-decoration: underline;
}

.terms-link,
.privacy-link {
    color: #007bff;
    text-decoration: none;
}

.terms-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e1e5e9;
}

.auth-divider span {
    background-color: white;
    padding: 0 1rem;
    color: #666;
    font-size: 0.875rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background-color: white;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #d1d5db;
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.auth-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e1e5e9;
}

.auth-footer p {
    color: #666;
    font-size: 0.875rem;
}

.auth-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Navigation auth buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.auth-btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.login-btn {
    color: white;
    background-color: #007bff;
}

.login-btn:hover {
    background-color: #0056b3;
}

.login-btn.active {
    background-color: #0056b3;
}

.register-btn {
    color: white;
    background-color: #007bff;
}

.register-btn:hover {
    background-color: #0056b3;
}

.register-btn.active {
    background-color: #0056b3;
}

.logout-btn {
    color: white;
    background-color: #dc3545;
    border: none;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.register-btn.active {
    background-color: #0056b3;
}

/* Dark mode styles */
[data-theme="dark"] .main-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

[data-theme="dark"] .auth-card {
    background: #2d2d2d;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .auth-header h1 {
    color: #ffffff;
}

[data-theme="dark"] .auth-header p {
    color: #b0b0b0;
}

[data-theme="dark"] .form-group label {
    color: #ffffff;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #ffffff;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus {
    background-color: #404040;
    border-color: #007bff;
}

[data-theme="dark"] .strength-bar {
    background-color: #4a4a4a;
}

[data-theme="dark"] .strength-text {
    color: #b0b0b0;
}

[data-theme="dark"] .checkmark {
    border-color: #4a4a4a;
}

[data-theme="dark"] .auth-divider::before {
    background-color: #4a4a4a;
}

[data-theme="dark"] .auth-divider span {
    background-color: #2d2d2d;
    color: #b0b0b0;
}

[data-theme="dark"] .social-btn {
    background-color: #3a3a3a;
    border-color: #4a4a4a;
    color: #ffffff;
}

[data-theme="dark"] .social-btn:hover {
    background-color: #404040;
    border-color: #5a5a5a;
}

[data-theme="dark"] .auth-footer {
    border-color: #4a4a4a;
}

[data-theme="dark"] .auth-footer p {
    color: #b0b0b0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 0.25rem;
        margin-left: 0.5rem;
    }
    
    .auth-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem 0.5rem;
    }
    
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .social-login {
        flex-direction: column;
    }
}
