/**
 * JH Web Solutions - Unified Authentication Stylesheet
 * Shared across login.php, signup.php, forgot-password.php, reset-password.php, verify-email.php
 */

/* ==========================================================================
   1. Section & Layout Wrapper
   ========================================================================== */
.auth-page-section {
    padding: 45px 0 60px 0;
    background-color: #f8fafc;
    min-height: 580px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   2. Shared Card Styles (Auth Card & Side Info Card)
   ========================================================================== */
.auth-card,
.auth-side-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    padding: 35px 32px;
    margin-bottom: 30px;
    position: relative;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.auth-card:hover,
.auth-side-card:hover {
    box-shadow: 0 15px 30px -5px rgba(15, 23, 42, 0.08), 0 10px 12px -6px rgba(15, 23, 42, 0.04);
}

.auth-side-card {
    border-top: 4px solid #2563eb;
    background: #ffffff;
}

/* ==========================================================================
   3. Card Header, Badges & Typography
   ========================================================================== */
.auth-card-header {
    text-align: center;
    margin-bottom: 22px;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 20px;
    background: #eff6ff;
    color: #2563eb;
    margin-bottom: 12px;
}

.auth-badge i {
    margin-right: 6px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.auth-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.auth-divider {
    height: 1px;
    background-color: #f1f5f9;
    border: none;
    margin: 18px 0 22px 0;
}

/* ==========================================================================
   4. Form Groups, Labels & Inputs
   ========================================================================== */
.auth-form-group {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.auth-label .required {
    color: #ef4444;
    font-weight: 700;
}

.auth-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.auth-input-wrapper .form-control {
    height: 44px !important;
    padding: 8px 14px 8px 42px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    transition: all 0.2s ease-in-out !important;
    width: 100% !important;
}

.auth-input-wrapper.has-toggle .form-control {
    padding-right: 44px !important;
}

.auth-input-wrapper .form-control:focus {
    background-color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.auth-input-wrapper .form-control:focus + .auth-input-icon,
.auth-input-wrapper:focus-within .auth-input-icon {
    color: #2563eb;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    padding: 6px 8px;
    z-index: 3;
    outline: none;
    transition: color 0.15s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: #2563eb;
    outline: none;
}

.auth-help-text {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 5px;
    display: block;
}

/* ==========================================================================
   5. Buttons & Action Links
   ========================================================================== */
.btn-auth-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    height: 46px !important;
    line-height: 46px !important;
    padding: 0 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.3px !important;
    width: 100% !important;
    text-align: center !important;
    cursor: pointer !important;
}

.btn-auth-primary:hover,
.btn-auth-primary:focus,
.btn-auth-primary:active {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.auth-forgot-link {
    font-size: 12.5px;
    color: #2563eb;
    font-weight: 600;
    transition: color 0.15s ease;
}

.auth-forgot-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-terms-note {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 15px 0;
}

.auth-terms-note a {
    color: #2563eb;
    font-weight: 600;
}

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

.auth-switch-box {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.auth-switch-text {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
}

.auth-switch-text a {
    color: #2563eb;
    font-weight: 700;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.auth-switch-text a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ==========================================================================
   6. Alerts & Validation Messages
   ========================================================================== */
.auth-alert {
    border-radius: 8px !important;
    font-size: 13.5px !important;
    padding: 12px 16px !important;
    margin-bottom: 20px !important;
    border: 1px solid !important;
}

.auth-alert-danger {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

.auth-alert-danger ul {
    margin: 0;
    padding-left: 18px;
}

.auth-alert-danger li {
    margin-bottom: 3px;
}

.auth-alert-danger li:last-child {
    margin-bottom: 0;
}

.auth-alert-success {
    background-color: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

/* ==========================================================================
   7. Side Card Features & Info Components
   ========================================================================== */
.auth-side-card .auth-side-header {
    margin-bottom: 20px;
}

.auth-side-card .auth-side-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.auth-side-card .auth-side-subtitle {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.auth-feature-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 25px 0;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.auth-feature-item:hover {
    background-color: #f8fafc;
}

.auth-feature-item:last-child {
    margin-bottom: 0;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    margin-right: 14px;
    margin-top: 2px;
}

.auth-feature-item.step-item .auth-feature-icon {
    background: #f0fdf4;
    color: #16a34a;
    font-weight: 700;
}

.auth-feature-content {
    flex: 1;
}

.auth-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 3px 0;
}

.auth-feature-desc {
    font-size: 12.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Trust / Stats Counter Box */
.auth-stats-box {
    display: flex;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 22px 0;
    text-align: center;
}

.auth-stat-item {
    flex: 1;
    border-right: 1px solid #e2e8f0;
}

.auth-stat-item:last-child {
    border-right: none;
}

.auth-stat-number {
    font-size: 18px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
    margin-bottom: 2px;
}

.auth-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Support Help Callout Box */
.auth-support-box {
    background: #eff6ff;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #dbeafe;
}

.auth-support-icon {
    font-size: 22px;
    color: #2563eb;
}

.auth-support-content {
    font-size: 12.5px;
    color: #1e40af;
    line-height: 1.5;
    margin: 0;
}

.auth-support-content a {
    color: #2563eb;
    font-weight: 600;
}

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

/* ==========================================================================
   8. Responsive Adjustments
   ========================================================================== */
@media (max-width: 991px) {
    .auth-card,
    .auth-side-card {
        padding: 28px 24px;
    }
}

@media (max-width: 767px) {
    .auth-page-section {
        padding: 30px 0 45px 0;
    }
    
    .auth-card,
    .auth-side-card {
        padding: 24px 20px;
        margin-bottom: 20px;
    }
    
    .auth-title,
    .auth-side-card .auth-side-title {
        font-size: 21px;
    }
    
    .auth-stats-box {
        padding: 10px 8px;
    }
    
    .auth-stat-number {
        font-size: 15px;
    }
    
    .auth-stat-label {
        font-size: 10px;
    }
    
    .auth-feature-item {
        padding: 6px 4px;
    }
    
    .auth-feature-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
        margin-right: 10px;
    }
}

/* ==========================================================================
   9. Auth Breadcrumb Banner (No Blank Height, Black Headings, Correct Design)
   ========================================================================== */
.auth-breadcrumb-banner {
    width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    padding: 22px 0;
    margin: 0;
    height: auto !important;
    min-height: auto !important;
}

.auth-breadcrumb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-breadcrumb-heading {
    color: #000000 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.2px;
    font-family: 'Poppins', sans-serif !important;
}

.auth-breadcrumb-heading a {
    color: #000000 !important;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-breadcrumb-heading a:hover {
    color: #2563eb !important;
}

.auth-breadcrumb-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.auth-breadcrumb-nav li {
    display: inline-flex;
    align-items: center;
    color: #000000;
}

.auth-breadcrumb-nav li a {
    color: #475569;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-breadcrumb-nav li a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.auth-breadcrumb-nav li a i {
    margin-right: 5px;
    font-size: 13px;
    color: #64748b;
}

.auth-breadcrumb-nav li.separator {
    color: #94a3b8;
    margin: 0 10px;
    font-size: 13px;
    user-select: none;
}

.auth-breadcrumb-nav li.active {
    color: #000000 !important;
    font-weight: 600;
}

/* Reset / override any legacy webinner-desig-ban4 height & padding */
.webinner-desig-ban4.auth-banner-reset {
    height: auto !important;
    min-height: auto !important;
    padding: 22px 0 !important;
    background-size: cover !important;
    background-position: center !important;
}

.webinner-desig-ban4.auth-banner-reset h2 {
    padding-top: 0 !important;
    color: #000000 !important;
}

@media (max-width: 767px) {
    .auth-breadcrumb-banner {
        padding: 16px 0;
    }
    
    .auth-breadcrumb-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .auth-breadcrumb-heading {
        font-size: 20px !important;
    }

    .auth-breadcrumb-nav {
        font-size: 13px;
    }
}
