:root {
    color-scheme: light;
    --zimba-ink: #292116;
    --zimba-muted: #786f60;
    --zimba-gold: #e5b34f;
    --zimba-orange: #f27b24;
    --zimba-paper: #fffaf0;
    --zimba-line: #eee2c9;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--zimba-ink);
    background:
        radial-gradient(ellipse at 18% 18%, rgba(245, 160, 45, .26), transparent 34%),
        radial-gradient(ellipse at 88% 64%, rgba(105, 61, 20, .58), transparent 38%),
        linear-gradient(145deg, #21180f 0%, #5b3518 48%, #9a5a20 100%);
    font-family: Manrope, "Segoe UI", Arial, sans-serif;
}

.auth-shell {
    display: flex;
    width: min(560px, 100%);
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    padding: 22px;
}

.auth-visual {
    position: relative;
    display: flex;
    min-height: 330px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 28px;
    border: 1px solid rgba(255, 232, 183, .28);
    border-radius: 28px 28px 0 0;
    color: #fff9ed;
    background:
        radial-gradient(circle at 78% 28%, #ffc765 0 9%, #df8329 9.3% 15%, transparent 15.4%),
        radial-gradient(ellipse at 76% 32%, rgba(245, 178, 76, .9) 0 21%, transparent 21.4%),
        linear-gradient(145deg, #70421f 0%, #bb702b 52%, #321e13 100%);
}

.auth-visual::before {
    position: absolute;
    top: 52px;
    right: -44px;
    width: 330px;
    height: 118px;
    border: 12px solid rgba(255, 224, 155, .77);
    border-radius: 50%;
    content: "";
    transform: rotate(-27deg);
}

.auth-visual::after {
    position: absolute;
    right: 12%;
    bottom: 8%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff0c8;
    box-shadow: -74px -165px 0 1px rgba(255,255,255,.62), -142px -92px 0 rgba(255,255,255,.72), 28px -188px 0 1px rgba(255,255,255,.5);
    content: "";
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .2em;
    text-decoration: none;
}

.auth-orbit {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    background: rgba(255,250,240,.94);
    box-shadow: 0 8px 26px rgba(20,23,29,.22);
}

.auth-orbit svg { width: 38px; height: 38px; }
.auth-visual-copy { position: relative; z-index: 1; max-width: 360px; }
.auth-visual-copy small { color: #ffe4a6; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.auth-visual-copy h2 { margin: 8px 0; font-size: clamp(26px, 7vw, 36px); line-height: 1.08; }
.auth-visual-copy p { max-width: 340px; margin: 0; color: rgba(255,255,255,.84); font-size: 13px; line-height: 1.55; }

.auth-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: -1px;
    padding: 26px;
    border: 1px solid var(--zimba-line);
    border-radius: 0 0 28px 28px;
    background: var(--zimba-paper);
    box-shadow: 0 26px 70px rgba(20, 12, 5, .28);
}

.auth-heading small { color: #94601b; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.auth-heading h1 { margin: 6px 0; font-size: clamp(28px, 7vw, 36px); line-height: 1.1; }
.auth-heading p { margin: 0 0 20px; color: var(--zimba-muted); font-size: 14px; line-height: 1.5; }
.auth-field { margin: 0 0 14px; }
.auth-field label { display: block; margin: 0 0 6px; color: #453722; font-size: 12px; font-weight: 800; }

.auth-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #e6d9bd;
    border-radius: 14px;
    outline: none;
    background: #fff;
    color: var(--zimba-ink);
    font: inherit;
}

.auth-field input:focus { border-color: #c78229; box-shadow: 0 0 0 3px rgba(205, 132, 43, .15); }
.auth-field .auth-check { display: flex; align-items: center; gap: 9px; }
.auth-field .auth-check input { width: auto; min-height: 0; accent-color: var(--zimba-orange); }
.auth-phone { display: flex; }

.auth-phone span {
    display: grid;
    min-width: 68px;
    place-items: center;
    border: 1px solid #e6d9bd;
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: #fff4dc;
    color: #453722;
    font-weight: 800;
}

.auth-phone input { border-radius: 0 14px 14px 0; }

.auth-submit {
    width: 100%;
    min-height: 54px;
    margin-top: 5px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #f8c64e 0%, #f28a27 100%);
    box-shadow: 0 12px 22px rgba(185, 103, 25, .22);
    color: #2e2012;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 900;
}

.auth-submit:hover { filter: brightness(.98); transform: translateY(-1px); }
.auth-submit:disabled { cursor: wait; opacity: .7; transform: none; }
.auth-links { display: flex; justify-content: center; gap: 4px; margin: -4px 0 16px; padding: 4px; border-radius: 999px; background: #f0e5d0; font-size: 13px; }
.auth-links a { flex: 1; padding: 9px 12px; border-radius: 999px; color: #80531c; font-weight: 800; text-align: center; text-decoration: none; }
.auth-links a.is-active { background: #fff; box-shadow: 0 3px 10px rgba(62, 42, 19, .09); color: #2e2012; }
.auth-links a:hover { text-decoration: underline; }
.auth-error { min-height: 20px; margin: 0 0 8px; color: #8e2133; font-size: 12px; font-weight: 700; }
.auth-meta { margin: 16px 0 0; color: var(--zimba-muted); font-size: 11px; text-align: center; }

@media (min-width: 760px) {
    .auth-shell { padding-top: 34px; padding-bottom: 34px; }
    .auth-visual { min-height: 350px; }
}

@media (max-width: 420px) {
    .auth-shell { padding: 12px; }
    .auth-visual { min-height: 300px; padding: 22px; }
    .auth-panel { padding: 22px 18px; }
}
