/* ============================================================
   Sign-in / sign-up / claim screens - one small stylesheet, phone first.
   Used by: auth/login.php, auth/register.php, business-owner/login.php, frontend/claim_invite.php
   ============================================================ */
.auth-wrap { max-width: 460px; margin: 18px auto 30px; padding: 0 14px; }
.auth-panel {
    background: #fff;
    border: 1px solid var(--line, #E3E8EF);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(15, 27, 45, .08);
    padding: 22px 18px 18px;
}
.auth-head { text-align: center; margin-bottom: 14px; }
.auth-badge {
    width: 54px; height: 54px; border-radius: 17px; margin-bottom: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2DD4A7, #0F8F6B); color: #fff; font-size: 1.35rem;
    box-shadow: 0 8px 20px rgba(15, 143, 107, .32);
}
.auth-badge.amber { background: linear-gradient(135deg, #F6B26E, #D97B2B); box-shadow: 0 8px 20px rgba(217, 123, 43, .3); }
.auth-panel h1 { font-family: var(--font-display, inherit); font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 5px; color: var(--navy-950, #0F1B2D); }
.auth-sub { margin: 0; color: var(--ink-soft, #5A6472); font-size: .9rem; line-height: 1.5; }

/* Visitor | Business owner switch */
.auth-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 16px; background: #EEF2F6; border-radius: 14px; }
.auth-seg a { text-align: center; padding: 10px 6px; border-radius: 11px; font-size: .84rem; font-weight: 700; color: #5A6472; text-decoration: none; }
.auth-seg a.on { background: #fff; color: #0F1B2D; box-shadow: 0 2px 8px rgba(15, 27, 45, .12); }

/* Alerts */
.auth-alert { border-radius: 12px; padding: 10px 13px; font-size: .86rem; line-height: 1.45; margin: 0 0 12px; }
.auth-alert.err { background: #FDECEC; color: #9B1C1C; border: 1px solid #F6C9C9; }
.auth-alert.ok  { background: #E7F6EF; color: #0B6B47; border: 1px solid #B8E3D0; }

/* Fields */
.auth-field { margin-bottom: 12px; }
.auth-field label { display: block; font-size: .78rem; font-weight: 700; color: #3B4656; margin-bottom: 5px; }
.auth-field label small { font-weight: 500; color: #8A96A6; }
.auth-input { position: relative; }
.auth-input .lead { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8A96A6; font-size: .95rem; pointer-events: none; }
.auth-input input {
    width: 100%; height: 48px; box-sizing: border-box; padding: 0 44px 0 42px;
    border: 1.5px solid #DCE3EB; border-radius: 14px; background: #fff; color: #0F1B2D;
    font: inherit; font-size: 1rem;                /* 16px: stops iPhone zooming into the field */
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-input input:focus { outline: none; border-color: var(--teal-500, #2A9D8F); box-shadow: 0 0 0 4px rgba(42, 157, 143, .14); }
.auth-input input::placeholder { color: #A5AFBC; }
.auth-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; color: #8A96A6; cursor: pointer; border-radius: 10px; }
.auth-hint { margin: 5px 2px 0; font-size: .76rem; color: #8A96A6; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 14px; font-size: .84rem; }
.auth-row a { font-weight: 600; }

/* Buttons */
.auth-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, #2DD4A7, #0F8F6B); color: #fff; font: inherit; font-size: 1rem; font-weight: 800; text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 143, 107, .3); transition: transform .12s ease, box-shadow .12s ease;
}
.auth-btn:active { transform: scale(.985); }
.auth-btn:disabled { opacity: .75; cursor: wait; }
.auth-btn.amber { background: linear-gradient(135deg, #F6B26E, #E58A2B); color: #2A1A00; box-shadow: 0 8px 20px rgba(217, 123, 43, .28); }
.auth-btn.ghost { background: #fff; color: #0F1B2D; border: 1.5px solid #DCE3EB; box-shadow: none; }
.auth-foot { text-align: center; margin: 14px 0 0; font-size: .88rem; color: #5A6472; }
.auth-foot a { font-weight: 700; }

/* Call-out cards under the form */
.auth-cta {
    display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 13px 14px; text-decoration: none;
    background: #FFF8EC; border: 1px solid #F5DDB0; border-radius: 16px; color: #4A3600;
}
.auth-cta .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #F6B26E; color: #2A1A00; font-size: 1.05rem; }
.auth-cta b { display: block; font-size: .9rem; }
.auth-cta span { display: block; font-size: .78rem; color: #7A6320; line-height: 1.4; margin-top: 1px; }
.auth-cta .go { margin-left: auto; color: #B7791F; }
.auth-cta.blue { background: #EEF5FF; border-color: #CFE0F7; color: #123A6B; }
.auth-cta.blue .ic { background: #60A5FA; color: #fff; }
.auth-cta.blue span { color: #3F638F; }
.auth-cta.blue .go { color: #3B82F6; }

.auth-perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; padding: 0; list-style: none; font-size: .78rem; color: #6B7787; }
.auth-perks i { color: #0F8F6B; margin-right: 4px; }

/* Claim: business search results */
.auth-search { display: flex; gap: 8px; margin: 4px 0 14px; }
.auth-search .auth-input { flex: 1; }
.auth-search .auth-btn { width: auto; padding: 0 18px; height: 48px; }
.auth-hit { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid #EDF1F5; }
.auth-hit:first-of-type { border-top: 0; }
.auth-hit .ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #E8F5F2; color: #1B7F72; }
.auth-hit .tx { flex: 1; min-width: 0; }
.auth-hit b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-hit small { color: #8A96A6; font-size: .78rem; }
.auth-hit .btn-s { flex: 0 0 auto; padding: 8px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none; background: #0F8F6B; color: #fff; }
.auth-hit .btn-s.off { background: #EEF2F6; color: #5A6472; }
.auth-steps { display: grid; gap: 8px; margin: 14px 0 4px; padding: 0; list-style: none; counter-reset: st; }
.auth-steps li { counter-increment: st; display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: #3B4656; line-height: 1.4; }
.auth-steps li::before { content: counter(st); flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: #E2F4F0; color: #1B7F72; font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

@media (min-width: 761px) {
    .auth-wrap { margin: 40px auto 56px; }
    .auth-panel { padding: 30px 28px 24px; }
}
