﻿:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brand Section */
.auth-brand {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.auth-logo i {
    font-size: 2.5rem;
    color: #667eea;
}

.auth-brand-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
}

/* Auth Content Card */
.auth-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.auth-card {
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.auth-header p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Form Styles */
.auth-form {
    margin-top: 30px;
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label i {
    margin-right: 5px;
    color: #667eea;
}

.form-control {
    height: 48px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #a0aec0;
}

.text-danger {
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-check {
    margin: 15px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border: 2px solid #e2e8f0;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    margin-left: 8px;
    color: #4a5568;
    font-size: 0.9rem;
}

/* Buttons */
.btn-primary {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-block {
    display: block;
    width: 100%;
}

/* Links */
.auth-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.back-link:hover {
    color: #764ba2;
    transform: translateX(-3px);
}

.back-link i {
    margin-right: 5px;
}

.forgot-password-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    margin-bottom: 20px;
    padding: 15px 20px;
    font-size: 0.9rem;
}

.alert i {
    margin-right: 8px;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.alert ol {
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.alert ol li {
    margin-bottom: 5px;
}

/* Footer Info */
.auth-footer-info {
    text-align: center;
    margin-top: 30px;
    color: white;
}

.auth-footer-info p {
    margin-bottom: 5px;
}

.auth-footer-info a {
    color: white;
    text-decoration: underline;
}

.auth-footer-info a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }

    .auth-brand-title {
        font-size: 1.5rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .form-control {
        height: 44px;
        font-size: 0.9rem;
    }

    .btn-primary {
        height: 46px;
        font-size: 0.95rem;
    }
}

/* Validation Styles */
.field-validation-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.input-validation-error {
    border-color: #dc3545 !important;
}

.validation-summary-errors {
    background-color: #fef2f2;
    border-left: 4px solid #dc3545;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.validation-summary-errors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.validation-summary-errors li {
    color: #991b1b;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Password Strength Indicator */
#password-strength {
    margin-top: 10px;
}

#password-strength .alert {
    margin-bottom: 0;
    padding: 8px 12px;
}
