/* Auth (login / reg) — panel bento dili */
:root {
    --ink: #12141a;
    --ink-soft: #3d4454;
    --muted: #7a8294;
    --paper: #f3f1ec;
    --line: rgba(18, 20, 26, 0.1);
    --accent: #ff3d1f;
    --accent-soft: rgba(255, 61, 31, 0.12);
    --lime: #b8f23a;
    --lime-ink: #2a3d00;
    --surface: #ffffff;
    --font-display: "Sora", system-ui, sans-serif;
    --font-body: "DM Sans", system-ui, sans-serif;
    --radius: 22px;
    --radius-sm: 16px;
    --shadow: 0 18px 40px rgba(18, 20, 26, 0.08);
    --btn-1: #ff3d1f;
    --btn-2: #e11d48;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(255, 61, 31, 0.1), transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 0%, rgba(184, 242, 58, 0.14), transparent 45%),
        linear-gradient(180deg, #f7f5f1 0%, #efece6 100%);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.auth-page {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.auth-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.auth-brand img {
    height: 48px;
    width: auto;
    max-width: 200px;
    border-radius: 0;
    object-fit: contain;
}

.auth-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--lime);
    color: var(--lime-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
}

.auth-nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 8px 12px;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}

.auth-nav-links a:hover { background: rgba(18,20,26,.05); color: var(--ink); }
.auth-nav-links a.is-active {
    background: var(--ink);
    color: #fff;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px 40px;
}

.auth-shell {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: authIn .55s cubic-bezier(.22,1,.36,1) both;
}

@keyframes authIn {
    from { opacity: 0; transform: translateY(16px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.auth-visual {
    position: relative;
    padding: 40px 36px;
    background:
        linear-gradient(160deg, rgba(18,20,26,.94), rgba(18,20,26,.82)),
        radial-gradient(circle at 20% 20%, rgba(255,61,31,.35), transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(184,242,58,.28), transparent 45%);
    color: #f5f6fa;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.auth-visual::after {
    content: "";
    position: absolute;
    inset: auto -20% -30% 20%;
    height: 70%;
    background: radial-gradient(circle, rgba(184,242,58,.22), transparent 65%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: .55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 14px;
}

.auth-visual h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.4vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.auth-visual p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(245,246,250,.78);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 34ch;
}

.auth-visual-foot {
    position: relative;
    z-index: 1;
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
}

.auth-panel {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-head {
    margin-bottom: 22px;
}

.auth-panel-head h2 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.auth-panel-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: authIn .4s ease both;
}

.auth-alert--error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.auth-alert--ok {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.22);
}

.auth-alert i { font-size: 1.15rem; margin-top: 1px; }

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input i.lead {
    position: absolute;
    left: 14px;
    color: var(--muted);
    font-size: 1rem;
    pointer-events: none;
}

.auth-input input,
.auth-input select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f7f6f3;
    padding: 0 14px 0 42px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    appearance: none;
}

.auth-input select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237a8294' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.auth-input input:focus,
.auth-input select:focus {
    background: #fff;
    border-color: rgba(255, 61, 31, 0.45);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.auth-input .toggle-pass {
    position: absolute;
    right: 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-input .toggle-pass:hover {
    background: rgba(18,20,26,.05);
    color: var(--ink);
}

.auth-input.has-toggle input { padding-right: 46px; }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.auth-submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--btn-1), var(--btn-2));
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 61, 31, 0.28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 28px rgba(255, 61, 31, 0.34);
}

.auth-submit:active { transform: translateY(0); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: .06em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.auth-google:hover {
    border-color: rgba(18,20,26,.2);
    box-shadow: 0 6px 16px rgba(18,20,26,.06);
    transform: translateY(-1px);
}

.auth-google img { width: 18px; height: 18px; }

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.auth-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-links a:hover { color: var(--accent); }

.auth-ad {
    display: flex;
    justify-content: center;
    padding: 0 18px 8px;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
}

.auth-ad .site-ad { margin: 0; }
.auth-ad .site-ad--placeholder .site-ad-box {
    width: 460px;
    max-width: 100%;
    min-height: 60px;
    height: 60px;
    padding: 0 12px;
    flex-direction: row;
    gap: 10px;
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual {
        min-height: auto;
        padding: 28px 24px;
    }
    .auth-visual h1 { font-size: 1.7rem; }
    .auth-panel { padding: 28px 22px 26px; }
    .auth-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .auth-nav { padding: 14px 16px; }
    .auth-nav-links a:not(.is-active) span { display: none; }
    .auth-links { flex-direction: column; align-items: flex-start; }
}
