* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #0a0a0f;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.container { width: 100%; max-width: 480px; }

.logo { text-align: center; margin-bottom: 24px; }
.logo img { max-width: 240px; width: 100%; height: auto; }

.card {
    background: #13131a;
    border: 1px solid #2d2d3d;
    border-radius: 12px;
    padding: 32px 24px;
}
.card h2 { font-size: 20px; font-weight: 600; margin-bottom: 24px; text-align: center; }

.field-group { margin-bottom: 20px; }

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    background: #1e1e2e;
    border: 1px solid #2d2d3d;
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 15px;
    padding: 10px 14px;
    transition: border-color 0.2s;
    outline: none;
    appearance: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus { border-color: #7c3aed; }
input:disabled { opacity: 0.55; cursor: default; }
select option { background: #1e1e2e; }

.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }

.btn-primary {
    width: 100%;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    margin-top: 8px;
}
.btn-primary:hover:not(:disabled) { background: #6d28d9; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
    background: #2d2d3d;
    color: #f1f5f9;
    border: 1px solid #3d3d5d;
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.btn-secondary:hover:not(:disabled) { background: #3d3d5d; }
.btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; }

.invalid-link { display: flex; flex-direction: column; gap: 20px; padding: 8px 0; }
.invalid-link__msg {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.5;
    text-align: center;
}
.invalid-link__btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

.field-msg {
    display: none;
    font-size: 12px;
    margin-top: 6px;
    padding: 5px 10px;
    border-left: 3px solid #7c3aed;
    border-radius: 0 4px 4px 0;
    background: rgba(124, 58, 237, 0.08);
}
.field-msg:not(:empty) { display: block; }
.field-msg.error { color: #ef4444; }
.field-msg.success { color: #10b981; }
.field-msg.info { color: #a78bfa; }

.agreements { display: flex; flex-direction: column; gap: 12px; }
.agreements-notice { font-size: 13px; color: #94a3b8; line-height: 1.4; }
.agreements-notice a { color: #a78bfa; text-decoration: none; }
.agreements-notice a:hover { text-decoration: underline; }
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #94a3b8;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #7c3aed;
    cursor: pointer;
}
.checkbox-label a { color: #a78bfa; text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

.cf-turnstile { display: flex; justify-content: center; margin: 4px 0; }

.field-invalid { border-color: #7c3aed !important; }

#form-error:not(:empty) { display: block; margin-bottom: 8px; }

@media (max-width: 420px) {
    .card { padding: 24px 16px; }
    .input-row { flex-direction: column; }
    .btn-secondary { width: 100%; }
}
