/* ═══════════════════════════════════════════
   SME PLATFORM — Auth Shell
   Used by: login, register, business select/create
═══════════════════════════════════════════ */

.auth-body {
    background: var(--light);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    padding-top: max(18px, env(safe-area-inset-top));
}
.auth-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-brand-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--primary); display: inline-block; }
.auth-topbar-link { font-size: 14px; font-weight: 600; color: var(--gray); text-decoration: none; }
.auth-topbar-link:hover { color: var(--dark); }

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 40px;
}

/* ── The card ────────────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 26px;
    box-shadow: 0 1px 3px rgba(16,21,31,.06);
}
.auth-eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}
.auth-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.auth-sub {
    font-size: 14.5px;
    color: var(--gray);
    margin-bottom: 26px;
    line-height: 1.5;
}

/* ── Large, thumb-friendly form fields ──────────────────── */
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .form-group label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 7px;
}
.auth-card .form-group input,
.auth-card .form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;              /* prevents iOS auto-zoom */
    min-height: 50px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: 'IBM Plex Sans', sans-serif;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card .form-group input:focus,
.auth-card .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,135,90,.12);
}

.auth-card .btn-full {
    width: 100%;
    min-height: 50px;
    font-size: 15.5px;
    border-radius: 12px;
}

.auth-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--gray);
}
.auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: var(--gray);
    font-size: 12.5px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-image: repeating-linear-gradient(90deg, var(--border) 0 5px, transparent 5px 10px);
}

/* ── Business select/create list rows ───────────────────── */
.auth-card .biz-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 18px; border: 1.5px solid var(--border); border-radius: 12px;
    text-decoration: none; color: var(--dark); min-height: 50px;
    transition: border-color .15s ease, background .15s ease;
}
.auth-card .biz-row:hover { border-color: var(--primary); background: var(--light); }
.auth-card .biz-row strong { font-size: 15px; }
.auth-card .biz-row .biz-role { font-size: 12.5px; color: var(--gray); text-transform: capitalize; }

/* ── Small screens: edge-to-edge card, no floating look ─── */
@media (max-width: 460px) {
    .auth-main { padding: 8px 12px 28px; align-items: flex-start; }
    .auth-card { border-radius: 16px; padding: 26px 20px; margin-top: 4px; }
    .auth-card h2 { font-size: 21px; }
}

/* Two-field rows still stack on phones */
.auth-card .form-row { display: flex; gap: 14px; }
@media (max-width: 460px) {
    .auth-card .form-row { flex-direction: column; gap: 0; }
}
