:root {
    --primary: #17181c;
    --accent: #b8860b;
    --accent-light: #e7bf4a;
    --bg: #f5f5f7;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: #ffffff;
    --border: #e7e7ec;
    --muted: #6f7480;
    --danger: #d92d20;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --app-height: 100vh;
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

html,
body {
    min-height: var(--app-height);
}

body {
    background:
        radial-gradient(circle at top left, rgba(184, 134, 11, 0.18), transparent 0 36%),
        radial-gradient(circle at bottom right, rgba(23, 24, 28, 0.12), transparent 0 34%),
        var(--bg);
    color: var(--primary);
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-page {
    position: relative;
    min-height: var(--app-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: visible;
}

.ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.24;
    pointer-events: none;
}

.ambient-one {
    width: 360px;
    height: 360px;
    top: -60px;
    left: -40px;
    background: rgba(184, 134, 11, 0.34);
}

.ambient-two {
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -120px;
    background: rgba(23, 24, 28, 0.18);
}

.auth-shell {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    max-height: calc(var(--app-height) - 40px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-hero {
    background: linear-gradient(135deg, #17181c 0%, #23262d 58%, #2d2f36 100%);
    color: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    min-height: 680px;
}

.hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.hero-back-link:hover {
    color: #fff;
}

.hero-logo-wrap {
    width: fit-content;
}

.auth-hero .logo-container,
.auth-hero .brand-name {
    color: #ffffff !important;
}

.auth-hero .slogan {
    color: rgba(255, 255, 255, 0.78) !important;
    border-top-color: rgba(255, 255, 255, 0.18) !important;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f7df9b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-copy h1 {
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

.hero-points {
    margin-top: auto;
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 520px;
}

.hero-point {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-point i {
    color: #f7df9b;
    margin-top: 2px;
}

.hero-point strong {
    display: block;
    font-size: 14px;
    margin-bottom: 3px;
}

.hero-point span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    line-height: 1.45;
}

.auth-panel {
    background: rgba(255, 255, 255, 0.92);
    padding: 28px;
    overflow-y: auto;
}

.panel-header {
    margin-bottom: 18px;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.panel-header h2 {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.panel-subtitle {
    color: var(--muted);
    font-size: 14px;
}

.form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.form-alert.is-error {
    background: rgba(217, 45, 32, 0.08);
    color: var(--danger);
    border: 1px solid rgba(217, 45, 32, 0.16);
}

.auth-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: #f1f2f6;
    border-radius: 14px;
    margin-bottom: 18px;
}

.auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.auth-form-panel {
    display: none;
    animation: fadeSlide 0.2s ease;
}

.auth-form-panel.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-strong);
    color: var(--primary);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.field textarea {
    min-height: 100px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.12);
}

.field-row {
    display: grid;
    gap: 12px;
}

.field-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.street-row {
    grid-template-columns: 1.4fr 0.75fr;
}

.required {
    color: var(--danger);
}

.profile-uploader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.profile-preview {
    position: relative;
    width: 96px;
    height: 96px;
    cursor: pointer;
}

.avatar-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f5;
    color: #9aa0aa;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    font-size: 28px;
}

.upload-chip {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    color: #fff;
    border: 2px solid #fff;
}

#profileUpload {
    display: none;
}

.profile-uploader p {
    font-size: 12px;
    color: var(--muted);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.checkbox-row a,
.panel-footnote a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.checkbox-row a:hover,
.panel-footnote a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    min-height: 52px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--primary) 0%, #2f3138 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.panel-footnote {
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 980px) {
    body {
        overflow: auto;
    }

    .auth-page {
        padding: 14px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .auth-hero {
        min-height: auto;
        padding-bottom: 22px;
    }

    .hero-points {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 10px;
        align-items: flex-start;
    }

    .auth-shell {
        border-radius: 20px;
    }

    .auth-hero,
    .auth-panel {
        padding: 18px 16px;
    }

    .auth-hero {
        gap: 16px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

    .panel-header h2 {
        font-size: 24px;
    }

    .field-row.two-col,
    .street-row {
        grid-template-columns: 1fr;
    }

    .auth-tab {
        font-size: 13px;
        padding: 10px;
    }

    .submit-btn {
        min-height: 50px;
    }
}
@media (max-width: 420px) {
    .hero-point {
        padding: 12px;
    }

    .hero-copy p,
    .panel-subtitle,
    .panel-footnote {
        font-size: 13px;
    }
}