/* =============================================
   MODERN AUTHENTICATION PAGES
   Professional design matching home page style
   ============================================= */

/* Compact Professional Breadcrumb */
.auth-breadcrumb {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 1rem 0;
    margin-bottom: 0;
    border-bottom: 3px solid #3b82f6;
}

.auth-breadcrumb .breadcrumb {
    background: none;
    margin-bottom: 0;
    padding: 0;
    font-size: 0.875rem;
}

.auth-breadcrumb .breadcrumb-item {
    color: #94a3b8;
}

.auth-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #64748b;
    font-size: 1.2rem;
    padding: 0 0.5rem;
}

.auth-breadcrumb .breadcrumb-item a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-breadcrumb .breadcrumb-item a:hover {
    color: #3b82f6;
}

.auth-breadcrumb .breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

/* Auth Page Container */
.auth-container {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Auth Card */
.auth-card {
    max-width: 480px;
    width: 100%;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.auth-card-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid #3b82f6;
}

.auth-card-header h1 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.auth-card-header p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
}

.auth-card-body {
    padding: 2.5rem 2rem;
}

/* Form Styling */
.auth-form-group {
    margin-bottom: 1.5rem;
}

.auth-form-group label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #f8fafc;
}

.auth-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-form-control::placeholder {
    color: #94a3b8;
}

/* Checkbox */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.auth-checkbox label {
    margin: 0;
    font-weight: 400;
    color: #475569;
    font-size: 0.875rem;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    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;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* Card Footer */
.auth-card-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-footer-link {
    text-align: center;
    color: #475569;
    font-size: 0.875rem;
}

.auth-footer-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-footer-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Divider */
.auth-footer-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-footer-divider::before,
.auth-footer-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

/* Validation Errors */
.auth-validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.auth-validation-summary ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #dc2626;
    font-size: 0.875rem;
}

.auth-validation-summary li {
    margin-bottom: 0.25rem;
}

/* reCAPTCHA Container */
.auth-recaptcha {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.auth-recaptcha > div {
    transform: scale(0.95);
    transform-origin: center;
}

/* Responsive */
@media (max-width: 576px) {
    .auth-container {
        padding: 2rem 1rem;
    }

    .auth-card-header {
        padding: 1.5rem;
    }

    .auth-card-header h1 {
        font-size: 1.5rem;
    }

    .auth-card-body {
        padding: 2rem 1.5rem;
    }

    .auth-card-footer {
        padding: 1.25rem 1.5rem;
    }

    .auth-recaptcha > div {
        transform: scale(0.85);
    }
}

/* Additional Professional Touches */
.auth-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-logo img {
    max-width: 120px;
    height: auto;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: #ffffff;
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

/* Trust Badges (Optional) */
.auth-trust {
    text-align: center;
    padding: 1rem;
    color: #64748b;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.auth-trust i {
    color: #3b82f6;
    font-size: 1rem;
}
