* {
    box-sizing: border-box;
}

:root {
    --bg: #080705;
    --card: rgba(18, 15, 11, 0.96);
    --line: rgba(234, 179, 76, 0.28);
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #fff7e8;
    --muted: #b9a98d;
    --gold: #f2b84b;
    --gold-strong: #d58a22;
    --danger: #ff776d;
    --success: #67e09a;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 18% 10%, rgba(214, 137, 31, 0.24), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(255, 214, 128, 0.13), transparent 26%),
        linear-gradient(140deg, #1b1209 0%, #050505 58%, #000 100%);
    color: var(--text);
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.card {
    width: 100%;
    max-width: 560px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

.logo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ffe08a, var(--gold-strong));
    color: #1b1106;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 14px 30px rgba(213, 138, 34, 0.24);
}

.brand-text {
    min-width: 0;
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 6px;
    font-size: clamp(28px, 5vw, 34px);
    line-height: 1.05;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

form {
    margin-top: 4px;
}

.form-group {
    margin-top: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

label {
    display: block;
    margin: 0 0 8px;
    font-weight: 800;
    color: #fff0cf;
}

input {
    width: 100%;
    border: 1px solid rgba(255, 210, 130, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    padding: 14px 15px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder {
    color: rgba(255, 247, 232, 0.38);
}

input:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(242, 184, 75, 0.13);
}

small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.45;
    font-size: 13px;
}

.grid-note {
    margin-top: 7px;
}

.captcha-box {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 14px;
    align-items: end;
    margin-top: 16px;
}

.captcha-code {
    min-height: 50px;
    border: 1px solid rgba(242, 184, 75, 0.42);
    border-radius: 14px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 224, 138, 0.18), rgba(213, 138, 34, 0.18)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 6px, rgba(0,0,0,0.04) 6px 12px);
    color: #ffdf8a;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 6px;
    user-select: none;
}

button {
    width: 100%;
    margin-top: 24px;
    border: 0;
    border-radius: 16px;
    padding: 15px 18px;
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg, #ffdc82, #d58a22);
    color: #160e05;
    box-shadow: 0 14px 28px rgba(213, 138, 34, 0.22);
    transition: transform 0.18s ease, filter 0.18s ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

button:active {
    transform: translateY(0);
}

.alert {
    border-radius: 14px;
    padding: 13px 15px;
    margin: 12px 0 18px;
    line-height: 1.45;
    border: 1px solid var(--line-soft);
}

.alert.success {
    background: rgba(50, 190, 105, 0.14);
    border-color: rgba(103, 224, 154, 0.34);
    color: #cbffdd;
}

.alert.error {
    background: rgba(255, 87, 74, 0.13);
    border-color: rgba(255, 119, 109, 0.34);
    color: #ffd5d0;
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

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

    .card {
        padding: 22px;
        border-radius: 20px;
    }

    .brand {
        align-items: flex-start;
    }

    .logo {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
        border-radius: 17px;
        font-size: 22px;
    }

    .form-grid,
    .captcha-box {
        grid-template-columns: 1fr;
    }

    .captcha-code {
        min-height: 54px;
    }
}
