/* ============================================================
   Larry Trustee AI — Account Modal Styles
   Dismissible modal — dark navy + gold matching the advisor.
   ============================================================ */

#lt-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    color: #e8e6e3;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    animation: lt-auth-fade-in 0.2s ease;
}

body.lt-auth-modal-open { overflow: hidden; }

.lt-auth-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(8, 14, 26, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-y: auto;
}

.lt-auth-card {
    position: relative;
    background: #0c1a2e;
    border: 1px solid rgba(201, 168, 76, 0.5);
    border-radius: 14px;
    padding: 32px 32px 28px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(201, 168, 76, 0.15);
    color: #e8e6e3;
    animation: lt-auth-pop-in 0.25s ease;
    margin: auto;
}

.lt-auth-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: #a8a39a;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    font-family: inherit;
}
.lt-auth-close:hover { background: rgba(255, 255, 255, 0.08); color: #f5e8b8; }

.lt-auth-logo { text-align: center; margin-bottom: 18px; padding-top: 8px; }
.lt-auth-logo img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid #c9a84c;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}
.lt-auth-logo h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #f5e8b8;
    font-size: 22px;
    font-weight: 600;
    margin: 12px 0 8px;
}

.lt-auth-intro {
    color: #d6cfb8;
    font-size: 13.5px;
    margin: 0;
    line-height: 1.55;
}

.lt-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}
.lt-auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #a8a39a;
    padding: 11px 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    font-family: inherit;
}
.lt-auth-tab:hover { color: #f0d98a; }
.lt-auth-tab.active {
    color: #f5e8b8;
    border-bottom-color: #c9a84c;
    font-weight: 700;
}

.lt-auth-form { display: flex; flex-direction: column; gap: 13px; }
.lt-auth-form.hidden { display: none; }

.lt-auth-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #d6cfb8;
    font-weight: 500;
}
.lt-auth-form .lt-auth-hint {
    color: #a8a39a;
    font-weight: 400;
    font-size: 12px;
}

.lt-auth-form input[type="text"],
.lt-auth-form input[type="email"],
.lt-auth-form input[type="password"] {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #e8e6e3;
    padding: 11px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.lt-auth-form input:focus {
    outline: none;
    border-color: #c9a84c;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.lt-auth-form input:disabled { opacity: 0.6; cursor: not-allowed; }

.lt-auth-checkbox {
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px !important;
    font-size: 13px;
    color: #d6cfb8;
    cursor: pointer;
    line-height: 1.45;
}
.lt-auth-checkbox input { margin-top: 3px; accent-color: #c9a84c; flex-shrink: 0; }

.lt-auth-disclosure {
    font-size: 12px;
    color: #a8a39a;
    line-height: 1.6;
    margin: 4px 0 0;
    padding: 12px 14px;
    background: rgba(201, 168, 76, 0.06);
    border-left: 2px solid rgba(201, 168, 76, 0.5);
    border-radius: 4px;
}
.lt-auth-disclosure strong { color: #f0d98a; font-weight: 700; }
.lt-auth-disclosure em { color: #d6cfb8; font-style: normal; font-weight: 600; }
.lt-auth-disclosure a { color: #c9a84c; text-decoration: underline; }
.lt-auth-disclosure a:hover { color: #f0d98a; }

.lt-auth-recover-explainer {
    color: #d6cfb8;
    font-size: 13px;
    margin: 0 0 8px;
    line-height: 1.55;
}

.lt-auth-cta {
    background: linear-gradient(135deg, #c9a84c, #b08a30);
    color: #0c1a2e;
    border: none;
    padding: 13px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.lt-auth-cta:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.45);
}
.lt-auth-cta:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.lt-auth-msg {
    font-size: 13px;
    margin: 6px 0 0;
    min-height: 18px;
    color: #d6cfb8;
    line-height: 1.5;
}
.lt-auth-msg.ok { color: #86efac; }
.lt-auth-msg.err { color: #ff8a8a; }

/* ---- Welcome-message inline CTA (rendered by advisor app.js) ---- */
.lt-welcome-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #c9a84c, #b08a30);
    color: #0c1a2e;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin: 12px 0 4px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.lt-welcome-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.45);
}
.lt-welcome-cta-secondary {
    background: transparent;
    color: #f0d98a;
    border: 1px solid #c9a84c;
    margin-left: 8px;
}
.lt-welcome-cta-secondary:hover {
    background: rgba(201, 168, 76, 0.12);
    box-shadow: none;
    color: #f5e8b8;
}

/* ---- Form rows (multi-column for name fields) ---- */
.lt-auth-row {
    display: flex;
    gap: 10px;
}
.lt-auth-row .lt-auth-narrow { flex: 1 1 0; min-width: 0; }
.lt-auth-row .lt-auth-wide { flex: 2 1 0; min-width: 0; }

/* ---- HAC reveal panel ---- */
.lt-hac-display {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 18px;
    margin: 0 0 14px;
    text-align: center;
}
.lt-hac-label {
    font-size: 12px;
    color: #d6cfb8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 10px;
    font-weight: 700;
}
.lt-hac-code {
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(201, 168, 76, 0.5);
    border-radius: 8px;
    padding: 16px 14px;
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #f5e8b8;
    letter-spacing: 1.5px;
    word-break: break-all;
    margin: 0 0 12px;
}
.lt-hac-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.lt-auth-secondary {
    background: transparent;
    color: #f0d98a;
    border: 1px solid #c9a84c;
    padding: 7px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.lt-auth-secondary:hover { background: rgba(201, 168, 76, 0.15); color: #f5e8b8; }

/* ---- HAC warning box ---- */
.lt-hac-warning {
    background: rgba(255, 160, 80, 0.08);
    border: 1px solid rgba(255, 160, 80, 0.5);
    border-left-width: 4px;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 0 0 14px;
    color: #ffd9b3;
    font-size: 13px;
    line-height: 1.6;
}
.lt-hac-warning strong { color: #ffb878; }
.lt-hac-warning ul { margin: 8px 0 0; padding-left: 18px; }
.lt-hac-warning li { margin-bottom: 6px; }
.lt-hac-warning li strong { color: #ffd083; }

.lt-hac-confirm {
    margin: 0 0 6px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

/* ---- Recovery Key shares ---- */
.lt-recovery-display {
    background: rgba(201, 168, 76, 0.05);
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 16px;
    margin: 0 0 14px;
}
.lt-recovery-explainer {
    color: #d6cfb8;
    font-size: 12.5px;
    line-height: 1.55;
    margin: 4px 0 12px;
}
.lt-recovery-share {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(201, 168, 76, 0.5);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.lt-recovery-label {
    font-size: 10px;
    color: #f0d98a;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}
.lt-recovery-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #f5e8b8;
    word-break: break-all;
    display: block;
}

@keyframes lt-auth-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes lt-auth-pop-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .lt-auth-card { padding: 28px 22px 22px; }
    .lt-auth-logo img { width: 60px; height: 60px; }
    .lt-auth-logo h1 { font-size: 20px; }
    .lt-auth-tab { font-size: 12px; padding: 10px 4px; }
}
