:root {
    --bg: #090909;
    --panel: rgba(20, 20, 20, .96);
    --panel-border: rgba(255,255,255,.10);
    --text: #fffdf5;
    --muted: #b7b7b7;
    --accent: #facc15;
    --accent-2: #f59e0b;
    --dark: #111111;
    --danger-bg: rgba(248,113,113,.12);
    --danger-border: rgba(248,113,113,.34);
    --danger-text: #fecaca;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(250,204,21,.15), transparent 32%),
        radial-gradient(circle at 90% 85%, rgba(245,158,11,.08), transparent 32%),
        var(--bg);
}

.affiliate-register-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
}

.register-shell {
    width: min(100%, 500px);
}

.brand-mark {
    margin: 0 auto 22px;
    width: max-content;
    font-size: 25px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -1px;
}

.brand-mark img { display:block; width:auto; height:36px; max-width:170px; }

.form-card-affiliate,
.result-card {
    border: 1px solid var(--panel-border);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: 0 28px 80px rgba(0,0,0,.42);
    backdrop-filter: blur(16px);
}

.form-card-affiliate { padding: 34px; }

.form-heading { text-align: center; margin-bottom: 26px; }

.free-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 7px 11px;
    border: 1px solid rgba(250,204,21,.30);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(250,204,21,.08);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

h1 {
    margin: 0;
    font-size: clamp(27px, 5vw, 37px);
    line-height: 1.08;
    letter-spacing: -1.3px;
}

.form-heading p,
.result-card > p {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

form { display: grid; gap: 17px; }

label { display: grid; gap: 8px; }

label > span {
    color: #dbe3ef;
    font-size: 13px;
    font-weight: 700;
}

input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 13px;
    outline: none;
    color: var(--text);
    background: rgba(255,255,255,.055);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder { color: #737e90; }

input:focus {
    border-color: rgba(250,204,21,.68);
    background: rgba(255,255,255,.075);
    box-shadow: 0 0 0 4px rgba(250,204,21,.10);
}

.register-button {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    color: var(--dark);
    background: linear-gradient(135deg, #fde047, #f59e0b);
    box-shadow: 0 12px 28px rgba(250,204,21,.20);
    font: inherit;
    font-weight: 900;
    transition: transform .18s ease, filter .18s ease;
}

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

.privacy-note {
    margin: -2px 0 0;
    color: #7f8a9c;
    text-align: center;
    font-size: 12px;
    line-height: 1.55;
}

.form-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid var(--danger-border);
    border-radius: 12px;
    color: var(--danger-text);
    background: var(--danger-bg);
    font-size: 13px;
    line-height: 1.5;
}

.result-card {
    padding: 44px 34px;
    text-align: center;
}

.result-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 20px;
    border: 1px solid rgba(250,204,21,.30);
    border-radius: 50%;
    color: #111111;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    font-size: 30px;
    font-weight: 1000;
    box-shadow: 0 12px 34px rgba(250,204,21,.18);
}

.result-note {
    margin-top: 22px;
    padding: 14px 15px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    color: #aeb8c7;
    background: rgba(255,255,255,.035);
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 560px) {
    .affiliate-register-page { padding: 20px 13px; }
    .form-card-affiliate { padding: 27px 20px; border-radius: 22px; }
    .result-card { padding: 36px 22px; border-radius: 22px; }
    .brand-mark { margin-bottom: 17px; }
}
