/* Tablelo - login / signup. Split layout: brand panel + form. Cool light theme. */
:root { --t: #0891B2; --td: #0E7490; --ink: #0F2A3D; --mut: #5B7083; --line: #D6E8F5; --bg: #F0F9FF; --soft: #F6FAFD; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Poppins', system-ui, sans-serif;
    min-height: 100vh; color: var(--ink); -webkit-font-smoothing: antialiased;
    display: flex; align-items: center; justify-content: center; padding: 1.2rem;
    background:
        radial-gradient(50rem 34rem at 90% 0%, rgba(8,145,178,.18), transparent 60%),
        radial-gradient(40rem 30rem at 0% 100%, rgba(129,140,248,.20), transparent 60%),
        linear-gradient(160deg, #F0F9FF, #E0F2FE);
}

/* ---------- shell: brand panel (left) + card (right) ---------- */
.auth-shell {
    width: 100%; max-width: 960px; display: grid; grid-template-columns: 5fr 6fr;
    background: #fff; border-radius: 26px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(15,70,110,.18), 0 0 0 1px rgba(8,145,178,.08);
}
.auth-shell > * { min-width: 0; }
.auth-brand {
    position: relative; overflow: hidden; color: #fff; text-align: left;
    padding: 2.4rem 2.2rem; display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(155deg, #0891B2 0%, #0E7490 60%, #0E4F6B 100%);
}
.auth-brand::before, .auth-brand::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.auth-brand::before { width: 260px; height: 260px; top: -90px; right: -90px; }
.auth-brand::after { width: 200px; height: 200px; bottom: -70px; left: -60px; }
.auth-brand > * { position: relative; z-index: 1; }
.auth-brand .logo-img { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 10px 26px rgba(0,0,0,.25); display: block; margin-bottom: 1.2rem; }
.auth-brand h1 { font-size: 1.7rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.auth-brand p { opacity: .88; font-size: .95rem; margin-top: .5rem; }
.perks { list-style: none; margin-top: 1.6rem; display: grid; gap: .7rem; }
.perks li { display: flex; align-items: center; gap: .65rem; font-size: .88rem; font-weight: 500; }
.perks li::before { content: '✓'; flex-shrink: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; }

.auth-card { background: #fff; padding: 2.4rem 2.2rem; display: flex; flex-direction: column; justify-content: center; }
.auth-card h2 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.auth-card .sub { color: var(--mut); font-size: .88rem; margin: .25rem 0 1.3rem; }

/* ---------- tabs ---------- */
.tabs { display: flex; background: #E4F3FC; border-radius: 12px; padding: 4px; margin-bottom: 1.2rem; }
.tabs button { flex: 1; border: 0; background: none; padding: .6rem; border-radius: 9px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; color: var(--mut); transition: all .2s; }
.tabs button.active { background: #fff; color: var(--td); box-shadow: 0 2px 8px rgba(15,70,110,.14); }

/* ---------- fields ---------- */
.field { margin-bottom: .95rem; }
.field label { display: block; font-size: .72rem; font-weight: 600; color: var(--mut); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .05em; }
.input { position: relative; }
.input > svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: #8FA6B8; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .15s; }
.input input { padding-left: 2.7rem !important; }
.input:focus-within > svg { stroke: var(--t); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel] {
    width: 100%; padding: .8rem .95rem; background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px;
    font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: #9FB3C4; }
.field input:focus { outline: none; border-color: var(--t); background: #fff; box-shadow: 0 0 0 4px rgba(8,145,178,.14); }
.eye { position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; padding: .4rem; border-radius: 8px; color: #8FA6B8; display: flex; }
.eye:hover { color: var(--t); background: #E4F3FC; }
.eye svg { position: static; transform: none; width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.input.has-eye input { padding-right: 2.8rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.check { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--mut); margin: .2rem 0 1.1rem; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--t); }

/* ---------- button ---------- */
.btn-main {
    width: 100%; padding: .9rem; border: 0; border-radius: 12px; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; color: #fff;
    background: linear-gradient(135deg, #0891B2, #0E7490); box-shadow: 0 10px 24px rgba(14,116,144,.32);
    transition: transform .15s, box-shadow .15s;
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(14,116,144,.4); }
.btn-main:active { transform: translateY(0); }
.btn-main:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-main.loading::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: .6rem; vertical-align: -2px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- messages ---------- */
.msg { border-radius: 12px; padding: .7rem .9rem; font-size: .85rem; margin-bottom: 1rem; display: none; }
.msg.error { display: block; background: #FDECEA; color: #B3261E; border: 1px solid #F6CFCB; }
.msg.info { display: block; background: #EAF6FD; color: var(--td); border: 1px solid #BFDDEF; }
.alt { text-align: center; margin-top: 1.2rem; font-size: .86rem; color: var(--mut); }
.alt a { color: var(--td); font-weight: 600; text-decoration: none; }
.alt a:hover { text-decoration: underline; }
.hidden { display: none !important; }

/* existing-restaurant banner */
.claim-box { display: flex; gap: .8rem; align-items: center; background: linear-gradient(135deg, #EAF6FD, #E7ECFF); border: 1px solid #BFDDEF; border-radius: 14px; padding: .8rem .95rem; margin-bottom: 1.1rem; font-size: .84rem; color: var(--ink); }
.claim-box .ci { flex-shrink: 0; width: 2.3rem; height: 2.3rem; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; box-shadow: 0 2px 8px rgba(15,70,110,.12); }
.claim-box a { display: inline-block; margin-top: .15rem; color: var(--td); font-weight: 700; text-decoration: none; }
.claim-box a:hover { text-decoration: underline; }
.claim-box label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.claim-box input[type=checkbox] { accent-color: var(--t); margin-top: .2rem; }

/* business type picker (signup) */
.types { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.type { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font: inherit; cursor: pointer; text-align: left; transition: all .15s; }
.type span { font-size: 1.4rem; line-height: 1; } .type b { font-size: .85rem; } .type small { font-size: .68rem; color: var(--mut); line-height: 1.25; }
.type:hover { border-color: #7DD3E8; transform: translateY(-2px); }
.type.on { border-color: var(--t); background: #EAF6FD; box-shadow: 0 0 0 3px rgba(8,145,178,.15); }

/* ---------- mobile ---------- */
@media (max-width: 820px) {
    body { padding: 0; align-items: flex-start; background: linear-gradient(160deg, #0891B2, #0E4F6B); }
    .auth-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-radius: 0; box-shadow: none; min-height: 100vh; min-height: 100dvh; max-width: 560px; margin: 0 auto; background: transparent; }
    .auth-brand { padding: calc(1.5rem + env(safe-area-inset-top)) 1.4rem 3rem; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: .9rem; }
    .auth-brand .logo-img { width: 50px; height: 50px; margin: 0; flex-shrink: 0; }
    .auth-brand h1 { font-size: 1.25rem; } .auth-brand p { font-size: .82rem; margin-top: .1rem; }
    .auth-brand .perks { display: none; }
    .auth-card {
        position: relative; z-index: 2; margin-top: -1.6rem; flex: 1; justify-content: flex-start;
        border-radius: 26px 26px 0 0; padding: 1.7rem 1.4rem calc(2rem + env(safe-area-inset-bottom));
        box-shadow: 0 -12px 30px rgba(8,60,90,.18);
    }
    .auth-card h2 { font-size: 1.4rem; }
    .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel] { font-size: 16px; padding-top: .9rem; padding-bottom: .9rem; }
    .tabs button { padding: .75rem .4rem; font-size: .84rem; }
    .btn-main { padding: 1rem; font-size: 1.02rem; }
    .check { font-size: .9rem; }
    .types { gap: .55rem; }
}
@media (max-width: 420px) {
    .row2 { grid-template-columns: 1fr; gap: 0; }
    .auth-brand { padding-left: 1.1rem; padding-right: 1.1rem; }
    .auth-card { padding-left: 1.1rem; padding-right: 1.1rem; }
    .type { padding: .6rem .65rem; } .type small { font-size: .64rem; }
}
