/* ═══════════════════════════════════════════════════════════
   FaithTrip — Professional Login Page v2
   Layout: Branded Visual (LEFT) | Login Form (RIGHT)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Full-screen split layout ── */
.login_container_wrapper {
    width: 100% !important;
    height: 100vh !important;
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    background: #f8fafc !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.login_container_wrapper .inner_content {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    gap: 0 !important;
    box-shadow: none !important;
    align-items: stretch !important;
}

/* ═══════════════════════════════════════════════════════════
   LEFT Panel — Branded Visual
   ═══════════════════════════════════════════════════════════ */
.ft-login-visual {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    background: linear-gradient(145deg, #0D1B5E 0%, #1a3a8f 40%, #0a3572 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 48px 56px;
    order: 1;
}

.ft-login-visual-content {
    position: relative;
    z-index: 2;
    max-width: 440px;
}

.ft-login-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}
.ft-login-visual-badge i {
    color: #F5A623;
    font-size: 0.85rem;
}

.ft-login-visual-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.ft-login-visual-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin: 0 0 32px;
    font-weight: 400;
}

/* Feature pills */
.ft-login-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ft-login-feat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.ft-login-feat:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}
.ft-login-feat i {
    color: #F5A623;
    font-size: 0.85rem;
}

/* Decorative circles */
.ft-login-decor-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.ft-ldc-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
    top: -120px;
    right: -80px;
}
.ft-ldc-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 93, 232, 0.15) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
}
.ft-ldc-3 {
    width: 160px;
    height: 160px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    bottom: 25%;
    right: 10%;
}

/* ═══════════════════════════════════════════════════════════
   RIGHT Panel — Login Form
   ═══════════════════════════════════════════════════════════ */
.ft-login-form-panel {
    flex: 1 1 50% !important;
    max-width: 50% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    background: #fff;
    position: relative;
    z-index: 2;
    order: 2;
}

/* Keep form content compact and centered */
.ft-login-logo-wrap,
.ft-login-heading,
.ft-login-subtext,
.ft-login-form,
.ft-login-footer {
    width: 100%;
    max-width: 380px;
}

.ft-login-logo-wrap {
    margin-bottom: 32px;
}
.ft-login-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}
.ft-login-logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}
.ft-ll-faith { color: #0D1B5E; }
.ft-ll-trip { color: #F5A623; }

.ft-login-heading {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.ft-login-subtext {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 28px;
    font-weight: 500;
}

/* ── Form inputs — CONSISTENT SIZING ── */
.ft-login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ft-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ft-input-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.ft-input-label i {
    font-size: 0.72rem;
    color: #5F6C80;
}

/* ★ Uniform input sizing — both email and password IDENTICAL ★ */
.ft-input {
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    line-height: 50px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}
.ft-input::placeholder {
    color: #5F6C80 !important;
    font-weight: 400 !important;
}
.ft-input:focus {
    border-color: #0D1B5E !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(13, 27, 94, 0.08) !important;
}
.ft-input.ft-input-error {
    border-color: #ef4444 !important;
}
.ft-error-msg {
    font-size: 0.78rem;
    color: #ef4444;
    font-weight: 500;
}

/* Password wrapper — same height */
.ft-password-wrap {
    position: relative;
}
.ft-password-wrap .ft-input {
    padding-right: 48px !important;
}
.ft-pw-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #5F6C80;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    transition: color 0.15s;
    z-index: 3;
}
.ft-pw-toggle:hover {
    color: #0D1B5E;
}

/* Remember me */
.ft-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ft-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #475569;
    font-weight: 500;
    cursor: pointer;
    /* The label is the tap target — the box sits inside it — and it measured
       117x20 at a phone width, under the 24x24 pointer-target minimum. */
    min-height: 24px;
    padding: 2px 0;
}
.ft-remember input[type="checkbox"] {
    accent-color: #0D1B5E;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Submit button */
.ft-login-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 50px !important;
    padding: 0 24px !important;
    background: linear-gradient(135deg, #0D1B5E 0%, #1a3a8f 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.02em !important;
    box-shadow: 0 4px 14px rgba(13, 27, 94, 0.25) !important;
    font-family: inherit !important;
    margin-top: 4px !important;
}
.ft-login-btn:hover {
    background: linear-gradient(135deg, #1a3a8f 0%, #243b9f 100%) !important;
    box-shadow: 0 8px 24px rgba(13, 27, 94, 0.35) !important;
    transform: translateY(-1px);
}
.ft-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(13, 27, 94, 0.2) !important;
}
.ft-login-btn i {
    font-size: 0.8rem;
    transition: transform 0.2s;
}
.ft-login-btn:hover i {
    transform: translateX(3px);
}

/* Footer text */
.ft-login-footer {
    margin-top: 32px;
    font-size: 0.75rem;
    color: #5F6C80;
    text-align: center;
    font-weight: 500;
}
.ft-login-footer strong {
    color: #0D1B5E;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
    .login_container_wrapper .inner_content {
        flex-direction: column !important;
    }
    .ft-login-visual {
        order: 1;
        min-height: 280px;
        padding: 36px 32px;
    }
    .ft-login-form-panel {
        order: 2;
        flex: none;
        padding: 36px 32px;
    }
    .ft-login-visual-title {
        font-size: 1.8rem;
    }
}
@media (max-width: 600px) {
    .ft-login-visual {
        display: none;
    }
    .ft-login-form-panel {
        padding: 28px 20px;
        flex: 1;
    }
    .ft-login-heading {
        font-size: 1.4rem;
    }
    .login_container_wrapper {
        position: static !important;
        height: auto !important;
        min-height: 100vh !important;
    }
    .login_container_wrapper .inner_content {
        min-height: 100vh !important;
    }
}

/* ── Override old classes & browser artifacts ── */
.left_section, .right_section { display: none !important; }
.password-showHide { display: none !important; }
.form-outline { border: none !important; padding: 0 !important; margin: 0 !important; }
.form-outline .form-control { border: none !important; }
.form-outline .form-notch,
.form-outline .form-notch-leading,
.form-outline .form-notch-middle,
.form-outline .form-notch-trailing,
.form-notch { display: none !important; }
.form-label { display: none !important; }
.trailing { display: none !important; }

/* Hide browser password reveal / credential picker */
input::-ms-reveal,
input::-ms-clear,
input::-webkit-credentials-auto-fill-button { display: none !important; }

/* Remove any outline/border from inner_content on login */
.login_container_wrapper .inner_content {
    border: none !important;
    outline: none !important;
}

/* Fix for old toggle password wrapper creating gap */
.ft-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.ft-password-wrap .ft-input {
    flex: 1;
    min-width: 0;
}

/* Ensure no extra elements inside password wrapper */
.ft-password-wrap > *:not(.ft-input):not(.ft-pw-toggle) {
    display: none !important;
}