* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #050b14;
    --card: #0b131f;
    --card2: #101a28;
    --border: rgba(255,255,255,.10);
    --text: #ffffff;
    --muted: #9aa4b2;
    --gold: #f5b800;
    --green: #00c981;
    --red: #ff4d4d;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at 50% 10%, rgba(245,184,0,.18), transparent 26%),
        radial-gradient(circle at 85% 35%, rgba(245,184,0,.10), transparent 22%),
        linear-gradient(180deg, #03070d, #07101b 48%, #04080e);
    color: var(--text);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    padding: 42px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 30px;
    font-weight: 900;
}

.brand-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(180deg, #ffd633, var(--gold));
    color: #050b14;
    border-radius: 8px 18px 18px 8px;
    font-weight: 900;
    display: grid;
    place-items: center;
    box-shadow: 0 0 28px rgba(245,184,0,.35);
}

.auth-card {
    width: 100%;
    max-width: 470px;
    padding: 34px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(18,29,45,.96), rgba(8,14,24,.96));
    border: 1px solid var(--border);
    box-shadow:
        0 30px 90px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.06);
}

.auth-card.wide {
    max-width: 660px;
}

.auth-header {
    margin-bottom: 28px;
}

.auth-header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--muted);
    line-height: 1.5;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    color: #dce2ea;
}

.input-wrap {
    height: 54px;
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    background: rgba(0,0,0,.24);
    transition: .2s ease;
}

.input-wrap:focus-within {
    border-color: rgba(245,184,0,.65);
    box-shadow: 0 0 0 4px rgba(245,184,0,.08);
}

.input-wrap i {
    color: var(--muted);
    width: 18px;
}

.input-wrap input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
    font-size: 15px;
}

.input-wrap input::placeholder {
    color: #6f7b8a;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #d2d8e0;
    margin: 6px 0 20px;
}

.form-row a,
.switch a,
.terms a {
    color: var(--gold);
    font-weight: 700;
}

.check,
.terms {
    display: flex;
    align-items: center;
    gap: 9px;
}

.check input,
.terms input {
    accent-color: var(--gold);
}

.terms {
    color: #c3cad5;
    font-size: 14px;
    line-height: 1.5;
    margin: 4px 0 22px;
}

.btn {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 26px;
    font-weight: 800;
    cursor: pointer;
    font-size: 15px;
}

.btn.gold {
    background: linear-gradient(180deg, #ffd633, var(--gold));
    color: #080b10;
    border: none;
    box-shadow: 0 12px 30px rgba(245,184,0,.18);
}

.btn.full {
    width: 100%;
}

.divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.social-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.social-row button {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.04);
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.social-row button:hover {
    border-color: rgba(245,184,0,.45);
}

.switch {
    margin-top: 24px;
    text-align: center;
    color: var(--muted);
}

.footer-text {
    margin-top: 26px;
    color: #687385;
    font-size: 14px;
}

@media (max-width: 640px) {
    .auth-page {
        justify-content: flex-start;
        padding-top: 34px;
    }

    .auth-card {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .auth-header h1 {
        font-size: 28px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }
}