/* ==========================================================================
   Account Login Screen — Styled to Match ForgotPassword Layout
   ========================================================================== */

.account-section {
    padding: 3rem 0 !important;
    background: #edf2f7;
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
}

.account-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: start;
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

/* Left Card: Sign In Form */
.account-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.account-card-top-bar {
    height: 4px;
    background: #003399;
}

.account-card-body {
    padding: 2rem;
}

.account-brand-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.account-brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00194d 0%, #003399 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 51, 153, 0.2);
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #003399;
    margin-bottom: 0.2rem;
    display: block;
}

.account-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.account-card-lead {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

/* Tab Switcher */
.login-type-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.35rem;
    margin-bottom: 1.25rem;
}

.login-type-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
    border-radius: 9px;
    text-decoration: none !important;
    color: #64748b !important;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.login-type-tab:hover {
    color: #003399 !important;
    background: rgba(255, 255, 255, 0.7);
}

.login-type-tab.is-active {
    background: #ffffff;
    color: #003399 !important;
    box-shadow: 0 2px 8px rgba(15, 40, 80, 0.08);
}

/* Panel Note */
.login-panel-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    margin-bottom: 1.15rem;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.45;
}

.login-panel-note i {
    color: #003399;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Form Fields & Inputs */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.account-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f172a;
}

.account-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.account-input-wrap > i:first-child {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.account-form .account-input-wrap input,
.account-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0.75rem 1rem 0.75rem 2.85rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #0f172a;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
}

.account-input-wrap:has(.account-eye-toggle) input {
    padding-right: 2.85rem;
}

.account-form .account-input-wrap input:focus,
.account-input-wrap input:focus {
    border-color: #003399;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}

.account-eye-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1;
}

.account-eye-toggle:hover {
    color: #003399;
}

/* Checkbox & Links */
.account-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0.1rem 0;
    font-size: 0.85rem;
}

.account-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
}

.login-help-muted {
    color: #64748b;
    font-size: 0.82rem;
}

/* Submit Button: Solid Dark Blue (Matching ForgotPassword layout) */
.btn-account-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    padding: 0.75rem 1.5rem;
    background: #002b80 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 43, 128, 0.25);
    transition: all 0.2s ease;
    margin-top: 0.4rem;
}

.btn-account-submit:hover {
    background: #001f5c !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 43, 128, 0.35);
}

.btn-account-submit.btn-account-outline {
    background: transparent !important;
    color: #003399 !important;
    border: 1px solid #003399;
    box-shadow: none;
}

.btn-account-submit.btn-account-outline:hover {
    background: #eef3ff !important;
    color: #002b80 !important;
    box-shadow: none;
    transform: none;
}

.account-input-wrap select {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 0.85rem 0 2.4rem;
    font-size: 0.92rem;
    color: #1e293b;
    appearance: auto;
}

.account-mfa-followup {
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
}

.account-mfa-channel-label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 650;
    color: #1e293b;
    font-size: 0.88rem;
}

.account-mfa-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.account-mfa-channel-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 68px;
    border: 1.5px solid #d7e0ec;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.account-mfa-channel-tile i {
    font-size: 1.1rem;
    color: #003399;
}

.account-mfa-channel-tile:hover {
    border-color: #93b4ef;
    background: #f4f8ff;
}

.account-mfa-channel-tile.is-selected {
    border-color: #003399;
    background: #eef4ff;
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.12);
}

.account-mfa-channel-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-mfa-resend-hint {
    margin: 0.55rem 0 0;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}

#btnResendCustomerMfa:disabled,
#btnResendCustomerMfa[aria-disabled="true"] {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

@media (max-width: 520px) {
    .account-mfa-channel-grid {
        grid-template-columns: 1fr;
    }
}

/* Right Info Panel: Quick Actions */
.account-info-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.aip-header {
    background: #00194d;
    padding: 1.25rem 1.5rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.aip-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.aip-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.15rem;
}

.aip-header p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.aip-tips-list {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 1.1rem;
}

a.aip-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0;
    border: none;
    background: transparent;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.2s ease;
}

a.aip-tip-item:hover {
    transform: translateX(4px);
}

.aip-tip-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.aip-icon-whatsapp {
    background: rgba(22, 163, 74, 0.12) !important;
    color: #16a34a !important;
}

a.aip-tip-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

a.aip-tip-item p {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.aip-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0 1.5rem;
}

.aip-help-row {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

.aip-help-row p {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

.btn-aip-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #003399;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-aip-secondary:hover {
    background: #ffffff;
    border-color: #003399;
    color: #003399 !important;
    box-shadow: 0 4px 14px rgba(0, 51, 153, 0.12);
}

@media (max-width: 900px) {
    .account-layout-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}
