:root {
    --auth-bg: #050505;
    --auth-surface: #101010;
    --auth-surface-soft: #181818;
    --auth-border: rgba(255, 204, 0, 0.2);
    --auth-border-strong: rgba(255, 204, 0, 0.45);
    --auth-text: #f4f2e6;
    --auth-muted: rgba(244, 242, 230, 0.74);
    --auth-primary: #ffcc00;
    --auth-primary-strong: #ffd94d;
    --auth-error: #ff6f6f;
    --auth-success: #6cd98b;
    --auth-radius: 20px;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    font: 500 1rem "Segoe UI", "Inter", sans-serif;
    color: var(--auth-text);
    background:
        radial-gradient(1200px 600px at 90% -10%, rgba(255, 204, 0, 0.14), transparent 65%),
        radial-gradient(900px 500px at -10% 110%, rgba(255, 204, 0, 0.08), transparent 70%),
        linear-gradient(160deg, #050505 0%, #0a0a0a 45%, #111 100%);
}

.auth-layout {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    border-radius: clamp(18px, 3vw, 28px);
    border: 1px solid var(--auth-border);
    background: linear-gradient(135deg, rgba(16, 16, 16, 0.96), rgba(8, 8, 8, 0.94));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.auth-panel {
    padding: clamp(1.4rem, 3vw, 2.5rem);
}

.auth-panel-brand {
    position: relative;
    background:
        linear-gradient(165deg, rgba(255, 204, 0, 0.14), rgba(255, 204, 0, 0.03) 55%),
        linear-gradient(140deg, #111 0%, #0d0d0d 100%);
    border-right: 1px solid var(--auth-border);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--auth-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-kicker::before {
    content: "";
    width: 20px;
    height: 1px;
    background: currentColor;
}

.auth-brand-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.15;
    color: #fff8dd;
}

.auth-brand-sub {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.7;
    max-width: 32ch;
}

.auth-feature-list {
    list-style: none;
    margin: 1.3rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.auth-feature-list li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.auth-feature-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--auth-primary);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.2);
    flex-shrink: 0;
}

.auth-panel-form {
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.9), rgba(10, 10, 10, 0.86));
}

.form {
    margin: 0;
}

.form__title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    color: #fff6d4;
}

.form__subtitle {
    margin: 0 0 1.4rem;
    color: var(--auth-muted);
    line-height: 1.6;
}

.form__message {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.form__message--success {
    color: #d4ffe1;
    background: rgba(79, 181, 116, 0.14);
    border-color: rgba(108, 217, 139, 0.45);
}

.form__message--error {
    color: #ffe2e2;
    background: rgba(204, 51, 51, 0.15);
    border-color: rgba(255, 111, 111, 0.4);
}

.form__input-group {
    margin-bottom: 0.85rem;
}

.form__input {
    display: block;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 204, 0, 0.22);
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--auth-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form__input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.form__input:focus {
    border-color: var(--auth-border-strong);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.14);
}

.form__button {
    width: 100%;
    padding: 0.92rem 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #181203;
    border: none;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    background: linear-gradient(180deg, var(--auth-primary-strong), var(--auth-primary));
    transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 10px 24px rgba(255, 204, 0, 0.26);
}

.form__button:hover {
    transform: translateY(-1px);
    filter: saturate(1.08);
}

.form__button:active {
    transform: translateY(0);
}

.form__text {
    margin: 0.95rem 0 0;
    color: var(--auth-muted);
    font-size: 0.94rem;
}

.form__text--center {
    text-align: center;
}

.form__link {
    color: #ffe28a;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 226, 138, 0.45);
}

.form__link:hover {
    color: #fff2c2;
    border-bottom-color: rgba(255, 242, 194, 0.7);
}

@media (max-width: 860px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-panel-brand {
        border-right: none;
        border-bottom: 1px solid var(--auth-border);
    }
}
