/* ── keybet Register & Auth Page Styling ───────────────────────────── */

/* ── Page Container ── */
.auth-page {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 20px 72px;
    background: radial-gradient(ellipse at 65% 0%, #15242c 0%, #070d11 60%);
}

/* ── Card Box ── */
.auth-box {
    width: 100%;
    max-width: 580px;
    background: #0d1820;
    border: 1px solid #1f3140;
    border-radius: 18px;
    padding: 44px 40px;
    box-shadow: 0 40px 100px #000000dd;
    position: relative;
}

/* ── Branding ── */
.auth-logo {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.auth-logo span {
    color: var(--gold, #f5bd32);
}

.auth-tagline {
    font-size: 12px;
    color: var(--muted, #94a1aa);
    margin-bottom: 24px;
}

/* ── Bonus Incentive Badge ── */
.bonus-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(90deg, #1c1808, #0e1a22);
    border: 1px solid #8e6d1b;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 26px;
}

.bonus-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.bonus-text strong {
    display: block;
    color: var(--gold, #f5bd32);
    font-size: 14px;
    font-weight: 800;
}

.bonus-text span {
    font-size: 11px;
    color: var(--muted, #94a1aa);
}

/* ── Title & Subtitle ── */
.auth-box h1 {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--muted, #94a1aa);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* ── Notices / Alerts ── */
.notice {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.notice.error {
    background: #2b1111;
    border: 1px solid #dc2626;
    color: #fca5a5;
}

.notice.error i {
    color: #ef4444;
    font-size: 18px;
    flex-shrink: 0;
}

.notice.success {
    background: #0d2719;
    border: 1px solid #10b981;
    color: #6ee7b7;
}

.notice.success i {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
}

/* ── Form Section Headers ── */
.form-section {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold, #f5bd32);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 24px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #1a2934;
}

/* ── Field Group ── */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    position: relative;
}

.field label {
    font-size: 11px;
    font-weight: 700;
    color: #8fa0aa;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.field input,
.field select {
    background: #0b161e;
    border: 1px solid #243240;
    color: #fff;
    border-radius: 9px;
    padding: 13px 14px;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}

.field input:focus,
.field select:focus {
    border-color: var(--gold, #f5bd32);
    box-shadow: 0 0 0 3px rgba(245, 189, 50, 0.15);
    background: #0f1c26;
}

.field input::placeholder {
    color: #445a68;
}

.field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a1aa' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    appearance: none;
}

.field select option {
    background: #0d1820;
    color: #fff;
}

/* ── Validation Error State ── */
.err-msg {
    display: none;
    font-size: 11px;
    color: #f87171;
    font-weight: 600;
    margin-top: 3px;
    transition: all 0.2s ease;
}

.field.invalid input,
.field.invalid select {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.field.invalid .err-msg {
    display: block;
    animation: fieldErrFadeIn 0.2s ease forwards;
}

@keyframes fieldErrFadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── 2-Column Grid ── */
.field-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Radio Pills (Opt-in) ── */
.radio-group {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.radio-pill {
    position: relative;
}

.radio-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-pill label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0b161e;
    border: 1px solid #243240;
    color: #c5d0d8;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    text-transform: none;
    letter-spacing: normal;
}

.radio-pill input[type="radio"]:checked+label {
    background: linear-gradient(90deg, #3d3012, #1b2020);
    border-color: var(--gold, #f5bd32);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(245, 189, 50, 0.2);
}

.radio-pill label:hover {
    border-color: #3b5060;
    background: #12202a;
}

/* ── Terms Row ── */
.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 24px;
    padding: 14px;
    border: 1px solid #1f3140;
    border-radius: 9px;
    font-size: 12px;
    color: #a0aec0;
    cursor: pointer;
    background: #081117;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.terms-row input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--gold, #f5bd32);
    width: 17px;
    height: 17px;
    cursor: pointer;
    flex-shrink: 0;
}

.terms-row a {
    color: var(--gold, #f5bd32);
    text-decoration: underline;
}

.terms-row.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* ── Register Button ── */
.btn-register {
    width: 100%;
    padding: 16px;
    border-radius: 11px;
    background: linear-gradient(135deg, #ffd65d, #e9aa20);
    color: #0a0d0f;
    font-size: 15px;
    font-weight: 900;
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: filter 0.2s, transform 0.12s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(245, 189, 50, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-register:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 30px rgba(245, 189, 50, 0.5);
}

.btn-register:active {
    transform: scale(0.99);
}

.btn-register:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: none;
}

/* ── Footer ── */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--muted, #94a1aa);
}

.auth-footer a {
    color: var(--gold, #f5bd32);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ── Success Card Screen ─────────────────────────────── */
.auth-box.success-box {
    text-align: center;
    animation: successFadeIn 0.35s ease forwards;
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-badge-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle, #2b2108, #0e1a22);
    border: 2px solid var(--gold, #f5bd32);
    box-shadow: 0 0 35px rgba(245, 189, 50, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--gold, #f5bd32);
    margin: 0 auto 20px;
}

.success-title {
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    margin: 10px 0 8px;
    letter-spacing: 0.5px;
}

.success-subtitle {
    font-size: 14px;
    color: var(--muted, #94a1aa);
    line-height: 1.6;
    margin: 0 auto 24px;
    max-width: 440px;
}

.success-subtitle strong {
    color: #fff;
}

.success-details {
    background: #081117;
    border: 1px solid #1f3140;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid #13222d;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--muted, #94a1aa);
    font-weight: 600;
}

.detail-value {
    color: #fff;
    font-weight: 700;
}

.status-active {
    color: #34d399 !important;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-btn {
    font-size: 16px;
    padding: 16px;
}

.success-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #111e27;
    border: 1px solid #283a48;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.success-btn-secondary:hover {
    background: #172834;
    border-color: var(--gold, #f5bd32);
}

/* ── Intl Tel Input Dark Theme Overrides ──────────────── */
.iti {
    width: 100%;
}

.iti__dropdown-content {
    background: #0e1c25 !important;
    border: 1px solid #2a3d4a !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 40px #000000dd !important;
    color: #fff !important;
}

.iti__country-list {
    background: #0e1c25 !important;
    color: #cbd5e1 !important;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background-color: #172632 !important;
    color: #fff !important;
}

.iti__country-name,
.iti__dial-code {
    color: #e2e8f0 !important;
}

.iti__search-input {
    background: #070d11 !important;
    border: 1px solid #24343f !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 8px !important;
}

/* ── Flatpickr Dark Theme Overrides ──────────────────── */
.flatpickr-calendar {
    background: #0e1c25 !important;
    border: 1px solid #2a3d4a !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px #000000dd !important;
    color: #fff !important;
}

.flatpickr-calendar .flatpickr-day {
    color: #cbd5e1 !important;
    border-radius: 6px !important;
}

.flatpickr-calendar .flatpickr-day:hover {
    background: #1b2f3d !important;
    color: #fff !important;
}

.flatpickr-calendar .flatpickr-day.selected {
    background: linear-gradient(#ffd65d, #e9aa20) !important;
    color: #070d11 !important;
    font-weight: 800 !important;
    border-color: #ffcc4b !important;
}

.flatpickr-months,
.flatpickr-current-month {
    color: #fff !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: #0e1c25 !important;
    color: #fff !important;
}

.flatpickr-weekday {
    color: var(--gold, #f5bd32) !important;
    font-weight: 700 !important;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .auth-box {
        padding: 32px 20px;
    }

    .field-grid-2 {
        grid-template-columns: 1fr;
    }

    .bonus-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}