/* ==========================================
   Modern Auth Pages Custom Styling
   ILIYAS KHAN - Custom Auth UX/UI Enhancement
   ========================================== */

/* Page Title Banner Enhancement */
.auth-page-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%), url('../images/bg-image-1.jpg') center/cover no-repeat;
    padding: 70px 0 60px;
    text-align: center;
    color: #ffffff;
    margin-bottom: 0;
}

.auth-page-banner .page-title-text {
    font-family: 'Playfair Display', serif, Georgia;
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.auth-page-banner .breadcrumbs-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 6px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.auth-page-banner .breadcrumbs-custom li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.auth-page-banner .breadcrumbs-custom li a {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-page-banner .breadcrumbs-custom li a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

.auth-page-banner .breadcrumbs-custom li.active {
    color: #ffffff;
}

.auth-page-banner .breadcrumbs-custom li + li::before {
    content: "→";
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.5);
}

/* Auth Section Layout */
.auth-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 20px 90px;
    min-height: calc(100vh - 350px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* Auth Card Glass/Shadow Design */
.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.12);
    border: 1px solid #e2e8f0;
    padding: 40px 36px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}

/* Header Inside Card */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    font-size: 24px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.auth-title {
    font-family: 'Playfair Display', serif, Georgia;
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.925rem;
    color: #64748b;
    margin: 0;
}

/* Form Input Groups with Icons */
.auth-field {
    margin-bottom: 22px;
    position: relative;
}

.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.auth-input {
    width: 100%;
    height: 50px;
    padding: 10px 16px 10px 48px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1e293b;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-input:focus {
    background-color: #ffffff;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.auth-input-wrapper:focus-within .auth-input-icon {
    color: #f59e0b;
}

/* Password Toggle Eye Icon */
.password-toggle-btn {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 3;
}

.password-toggle-btn:hover {
    color: #f59e0b;
}

/* Extra Input Padding when Toggle Present */
.auth-input.has-toggle {
    padding-right: 48px;
}

/* Options Row (Remember Me & Forgot Password) */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    font-size: 0.875rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.auth-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f59e0b;
    cursor: pointer;
    border-radius: 4px;
}

.auth-forgot-link {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.auth-forgot-link:hover {
    color: #b45309;
    text-decoration: underline;
}

/* Primary Submit Button */
.btn-auth-primary {
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -4px rgba(245, 158, 11, 0.45);
    color: #ffffff;
}

.btn-auth-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px -4px rgba(245, 158, 11, 0.3);
}

/* OR Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 28px 0;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e2e8f0;
    z-index: 1;
}

.auth-divider-text {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background-color: #ffffff;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Footer / Switch Auth Page */
.auth-footer-note {
    text-align: center;
    font-size: 0.925rem;
    color: #64748b;
    margin-top: 24px;
}

.auth-footer-link {
    color: #d97706;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.auth-footer-link:hover {
    color: #b45309;
    text-decoration: underline;
}

/* Alert Styling */
.auth-alert {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.auth-alert ul {
    margin: 0;
    padding-left: 20px;
}

/* Two column layout for names */
.auth-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 576px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }
    .auth-row-2col {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .auth-page-banner .page-title-text {
        font-size: 2rem;
    }
}
