/* KIRA Markets — Shared Login Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg-primary: #050505;
    --bg-surface: #121212;
    --bg-elevated: #1A1A1A;
    --border: #262626;
    --gold: #D4AF37;
    --gold-hover: #F2C94C;
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1AA;
    --text-muted: #52525B;
    --bullish: #00E676;
    --bearish: #FF3B30;
}
/* FIX-MOBILE-P0: `overflow-x:hidden` on <html> breaks Android touch-scroll.
   Login pages don't need horizontal-overflow containment (single-column layout
   with `.container { max-width: 440px }`). Removed. */
body { overflow-x: hidden; }
body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 24px;
    position: relative;
}
.bg-glow {
    position: fixed; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(212,175,55,0.15) 0%, transparent 50%);
    z-index: 0;
}
.disclaimer-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(212,175,55,0.08);
    border-bottom: 1px solid rgba(212,175,55,0.25);
    color: #e5d28e; font-size: 12px; text-align: center; padding: 8px 16px;
    line-height: 1.35;
    backdrop-filter: blur(8px);
}
.container { width: 100%; max-width: 440px; z-index: 1; }
.brand { text-align: center; margin-bottom: 24px; }
.brand-logo { height: 56px; width: 56px; object-fit: contain; margin-bottom: 12px; background: transparent; border: none; padding: 0; box-shadow: none; filter: none; border-radius: 0; }
.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 22px; font-weight: 700; letter-spacing: 4px;
    color: var(--gold);
}
.brand-sub {
    font-size: 11px; letter-spacing: 3px; color: var(--text-secondary);
    margin-top: 6px;
}
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 28px;
}
.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px; font-weight: 600; color: var(--text-primary);
    margin-bottom: 6px;
}
.card-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label {
    display: block; font-size: 11px; letter-spacing: 1.5px;
    color: var(--text-secondary); text-transform: uppercase; margin-bottom: 8px;
}
.field input {
    width: 100%; background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text-primary); padding: 12px 14px; border-radius: 4px;
    font-size: 15px; font-family: inherit; transition: border-color 0.15s ease;
    -webkit-appearance: none; appearance: none;
}
.field input:focus { outline: none; border-color: var(--gold); }
.btn-submit {
    width: 100%; background: var(--gold); color: #1a1300;
    border: none; padding: 14px; font-size: 13px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; cursor: pointer;
    border-radius: 4px; transition: background 0.2s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.btn-submit:hover { background: var(--gold-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-link {
    display: block; text-align: center; margin-top: 16px;
    color: var(--text-secondary); font-size: 12px; text-decoration: none;
    letter-spacing: 1px;
}
.btn-link:hover { color: var(--gold); }
.error {
    background: rgba(255,59,48,0.1); border: 1px solid rgba(255,59,48,0.3);
    color: var(--bearish); padding: 10px 14px; border-radius: 4px;
    font-size: 13px; margin-bottom: 14px; display: none;
    line-height: 1.4;
}
.error.show { display: block; }
.footer-legal {
    text-align: center; margin-top: 22px;
    color: var(--text-muted); font-size: 11px; line-height: 1.6;
    padding: 0 8px;
}
.footer-legal strong { color: #e5d28e; }

/* Picker */
.picker-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-top: 22px;
}
.picker-card {
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 24px 18px; text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; color: inherit; display: block;
    -webkit-tap-highlight-color: transparent;
}
.picker-card:hover, .picker-card:focus {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(212,175,55,0.3);
}
.picker-card:active { transform: translateY(0); }
.picker-icon { font-size: 30px; margin-bottom: 10px; }
.picker-title {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 4px;
}
.picker-sub { color: var(--text-secondary); font-size: 11px; }

/* Phone */
@media (max-width: 540px) {
    body { padding: 56px 12px 20px; }
    .disclaimer-bar { font-size: 11px; padding: 7px 12px; }
    .container { max-width: 100%; }
    .brand-logo { height: 42px; width: 42px; }
    .brand-title { font-size: 18px; letter-spacing: 3px; }
    .brand-sub { font-size: 10px; letter-spacing: 2px; }
    .card { padding: 24px 20px; border-radius: 6px; }
    .card-title { font-size: 18px; }
    .card-sub { font-size: 12px; margin-bottom: 18px; }
    .field input { font-size: 16px; padding: 11px 12px; } /* prevents iOS zoom */
    .btn-submit { padding: 13px; font-size: 12px; letter-spacing: 1.5px; }
    .picker-grid { grid-template-columns: 1fr; gap: 10px; }
    .picker-card { padding: 20px 16px; }
    .picker-icon { font-size: 26px; }
    .footer-legal { font-size: 10px; margin-top: 18px; }
}

/* Tiny phones */
@media (max-width: 360px) {
    .card { padding: 20px 16px; }
    .brand { margin-bottom: 18px; }
    .brand-logo { height: 42px; }
}
