*, *::before, *::after { box-sizing: border-box; }

:root {
    --auth-primary: #d85f35;
    --auth-primary-dark: #b94724;
    --auth-secondary: #173f35;
    --auth-background: #f4f6f2;
    --auth-surface: #ffffff;
    --auth-soft: #eef2ed;
    --auth-text: #17201b;
    --auth-muted: #66736b;
    --auth-line: #dce4dd;
    --auth-error: #b93838;
}

html, body { min-width: 320px; min-height: 100%; margin: 0; }
body {
    min-height: 100vh;
    padding: 24px;
    color: var(--auth-text);
    background:
        radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--auth-primary) 11%, transparent), transparent 35%),
        radial-gradient(circle at 92% 92%, color-mix(in srgb, var(--auth-secondary) 10%, transparent), transparent 38%),
        var(--auth-background);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(380px, 1.15fr);
    width: min(1080px, 100%);
    min-height: calc(100vh - 48px);
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--auth-line);
    border-radius: 24px;
    background: var(--auth-surface);
    box-shadow: 0 24px 70px rgba(23,63,53,.12);
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(30px, 5vw, 58px);
    overflow: hidden;
    color: #f7fbf8;
    background: var(--auth-secondary);
}
.auth-aside::after {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -150px;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
}
.auth-product { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 750; letter-spacing: -.03em; }
.auth-product--logo { align-self: flex-start; padding: 10px 16px; border-radius: 14px; background: #ffffff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.auth-product--logo img { display: block; width: auto; height: 44px; max-width: 220px; }
.auth-product-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--auth-primary); font-size: 20px; }
.auth-aside-copy { position: relative; z-index: 1; margin: auto 0; }
.auth-aside-copy h1 { max-width: 470px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -.055em; }
.auth-aside-copy p { max-width: 430px; margin: 20px 0 0; color: rgba(247,251,248,.72); line-height: 1.7; }
.auth-aside-footer { position: relative; z-index: 1; color: rgba(247,251,248,.58); font-size: .75rem; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 6vw, 68px); }
.auth-panel { width: 100%; max-width: 500px; }
.auth-club-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 32px; }
.auth-club-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--auth-soft); color: var(--auth-secondary); font-weight: 750; }
.auth-club-brand strong, .auth-club-brand span { display: block; }
.auth-club-brand strong { font-size: .9rem; }
.auth-club-brand span { margin-top: 3px; color: var(--auth-muted); font-size: .72rem; }
.auth-back { display: inline-flex; margin-top: 7px; color: var(--auth-primary); text-decoration: none; font-size: .72rem; font-weight: 650; }
.auth-panel h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; }
.auth-invited-club { margin: -12px 0 24px; padding: 13px 15px; border: 1px solid var(--auth-primary); border-radius: 12px; background: color-mix(in srgb, var(--auth-primary) 8%, transparent); }
.auth-invited-club span, .auth-invited-club strong { display: block; }
.auth-invited-club span { color: var(--auth-muted); font-size: .72rem; }
.auth-invited-club strong { margin: 2px 0; font-size: .95rem; }
.auth-intro { margin: 8px 0 28px; color: var(--auth-muted); font-size: .88rem; line-height: 1.6; }

.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.auth-full { grid-column: 1 / -1; }
.auth-field label { display: block; margin-bottom: 7px; color: var(--auth-text); font-size: .78rem; font-weight: 650; }
.auth-field + .auth-field { margin-top: 17px; }
.auth-field input:not([type=checkbox]),
.auth-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--auth-line);
    border-radius: 11px;
    outline: none;
    background: var(--auth-surface);
    color: var(--auth-text);
    font: inherit;
    font-size: max(16px, .88rem);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:focus,
.auth-field select:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 13%, transparent); }
.auth-field-check { display: flex; align-items: center; gap: 9px; margin: 18px 0; color: var(--auth-muted); font-size: .8rem; }
.auth-field-check input { width: 17px; height: 17px; accent-color: var(--auth-primary); }
.auth-hint { margin-top: 5px; color: var(--auth-muted); font-size: .68rem; line-height: 1.45; }
.auth-validation { color: var(--auth-error); }
.auth-button {
    width: 100%;
    min-height: 46px;
    margin-top: 22px;
    border: 0;
    border-radius: 11px;
    background: var(--auth-primary);
    color: #fff;
    font: inherit;
    font-size: .85rem;
    font-weight: 720;
}
.auth-button:hover { background: var(--auth-primary-dark); }
.auth-links { margin-top: 18px; text-align: center; color: var(--auth-muted); font-size: .78rem; }
.auth-links + .auth-links { margin-top: 11px; }
.auth-links a { color: var(--auth-primary); font-weight: 650; text-decoration: none; }
.auth-links a:hover, .auth-back:hover { text-decoration: underline; }
.auth-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(185,56,56,.24); border-radius: 11px; background: rgba(185,56,56,.07); color: var(--auth-error); font-size: .78rem; line-height: 1.5; }
.auth-alert-spaced { margin-top: 18px; }
.auth-success { padding: 18px; border: 1px solid rgba(40,122,82,.25); border-radius: 12px; background: rgba(40,122,82,.08); color: #216441; line-height: 1.65; text-align: center; }

@media (max-width: 820px) {
    body { padding: 0; background: var(--auth-surface); }
    .auth-layout { display: block; width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .auth-aside { min-height: auto; padding: 20px; }
    .auth-aside-copy, .auth-aside-footer { display: none; }
    .auth-main { min-height: calc(100vh - 76px); padding: 32px 20px 48px; align-items: flex-start; }
}

@media (max-width: 540px) {
    .auth-grid { grid-template-columns: 1fr; }
    .auth-full { grid-column: auto; }
    .auth-panel h2 { font-size: 1.45rem; }
}
