/* ════════════════════════════════════════
   auth.css — Auth pages styling
   Scoped under body.sv, extends saviliate-landing.css tokens.
════════════════════════════════════════ */

/* Page structure */
.sv .sv-reg-page {
    min-height: 100vh;
    padding-top: 88px;
    display: flex;
    flex-direction: column;
}

.sv .sv-reg-content {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 3rem 1rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sv .sv-reg-wrap {
    width: 100%;
    max-width: 860px;
}

/* Background decorations */
.sv .sv-hero-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(26, 74, 74, .35) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(201, 169, 110, .08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 20% 60%, rgba(26, 74, 74, .14) 0%, transparent 60%);
}

.sv .sv-hero-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(201, 169, 110, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 110, .04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

/* Page header */
.sv .sv-reg-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sv .sv-reg-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: 'DM Mono', monospace;
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .35rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(201, 169, 110, .35);
    background: rgba(201, 169, 110, .08);
    color: var(--sv-gold-light);
    margin-bottom: 1.25rem;
    animation: sv-fadeUp .9s ease both;
}

.sv .sv-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sv-gold);
    animation: sv-pulse 2s ease-in-out infinite;
}

.sv .sv-reg-h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: #fff;
    animation: sv-fadeUp .9s .1s ease both;
}

.sv .sv-reg-h1 em {
    font-style: italic;
    color: var(--sv-gold);
}

.sv .sv-reg-sub {
    font-size: .95rem;
    color: var(--sv-muted);
    line-height: 1.75;
    margin-top: .75rem;
    animation: sv-fadeUp .9s .2s ease both;
}

@keyframes sv-fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sv-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(1.6);
    }
}

/* Card */
.sv .sv-reg-card {
    background: var(--sv-ink2);
    border: 1px solid var(--sv-border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(201, 169, 110, .06);
    position: relative;
    animation: sv-fadeUp .9s .3s ease both;
}

.sv .sv-reg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sv-gold), var(--sv-teal-light), var(--sv-gold), transparent);
}

.sv .sv-card-left {
    padding: 2.75rem 2.25rem;
    border-right: 1px solid var(--sv-border);
    background: linear-gradient(180deg, rgba(26, 74, 74, .12) 0%, transparent 100%);
}

.sv .sv-card-right {
    padding: 2.75rem 2.5rem;
}

@media (max-width: 767.98px) {
    .sv .sv-card-left,
    .sv .sv-card-right {
        padding: 2rem 1.5rem;
        border-right: none;
    }

    .sv .sv-card-left {
        border-bottom: 1px solid var(--sv-border);
    }
}

/* Section label */
.sv .sv-slabel {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-family: 'DM Mono', monospace;
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sv-gold);
    margin-bottom: 1.5rem;
}

.sv .sv-slabel::before {
    content: '';
    width: 16px;
    height: 1px;
    background: var(--sv-gold);
}

/* Form fields */
.sv .sv-field {
    margin-bottom: 1.2rem;
}

.sv .sv-lbl {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .4);
    margin-bottom: .45rem;
}

.sv .sv-lbl .sv-opt {
    font-size: .55rem;
    color: rgba(255, 255, 255, .2);
    text-transform: none;
    letter-spacing: 0;
}

.sv .sv-input {
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(201, 169, 110, .2);
    border-radius: 3px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
    padding: .75rem 1rem;
    transition: border-color .25s, background .25s, box-shadow .25s;
    outline: none;
    -webkit-appearance: none;
}

.sv .sv-input::placeholder {
    color: rgba(255, 255, 255, .2);
}

.sv .sv-input:focus {
    border-color: var(--sv-gold);
    background: rgba(201, 169, 110, .06);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, .1);
}

.sv .sv-input.ok {
    border-color: #4ade80;
}

.sv .sv-input.err {
    border-color: #f87171;
}

/* OTP input */
.sv .sv-input.sv-otp {
    font-size: 1.2rem;
    padding: .75rem 1rem;
    text-align: center;
    letter-spacing: .5rem;
}

.sv .sv-input.sv-otp::placeholder {
    letter-spacing: normal;
}

/* Remove number input spinners */
.sv .sv-input::-webkit-outer-spin-button,
.sv .sv-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sv .sv-input[type=number] {
    -moz-appearance: textfield;
}

.sv .sv-sel {
    width: 100%;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(201, 169, 110, .2);
    border-radius: 3px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
    padding: .75rem 1rem;
    transition: border-color .25s, background .25s, box-shadow .25s;
    outline: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: none;
}

.sv .sv-sel option {
    background: #13131a;
    color: #fff;
}

.sv .sv-sel.sv-loading {
    background-image: none;
    color: rgba(255, 255, 255, .3);
}

.sv .sv-sel:focus {
    border-color: var(--sv-gold);
    background: rgba(201, 169, 110, .06);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, .1);
}

/* Input with icon */
.sv .sv-iw {
    position: relative;
}

.sv .sv-iw .sv-input {
    padding-left: 2.6rem;
}

.sv .sv-ico {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(201, 169, 110, .45);
    font-size: .85rem;
    pointer-events: none;
}

/* Password toggle eye */
.sv .sv-pw-wrap {
    position: relative;
}

.sv .sv-pw-wrap .sv-input {
    padding-right: 2.8rem;
}

.sv .sv-pw-wrap .sv-pw-eye {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(201, 169, 110, .45);
    font-size: .85rem;
    cursor: none;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color .2s;
}

.sv .sv-pw-wrap .sv-pw-eye:hover {
    color: var(--sv-gold);
}

/* Feedback + hint */
.sv .sv-fb {
    font-family: 'DM Mono', monospace;
    font-size: .65rem;
    margin-top: .35rem;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    gap: .3rem;
}

.sv .sv-fb.ok {
    color: #4ade80;
}

.sv .sv-fb.err {
    color: #f87171;
}

.sv .sv-fb.chk {
    color: rgba(255, 255, 255, .35);
}

.sv .sv-hint {
    font-family: 'DM Mono', monospace;
    font-size: .6rem;
    color: rgba(255, 255, 255, .22);
    margin-top: .3rem;
}

/* Alerts */
.sv .sv-alert {
    font-family: 'DM Mono', monospace;
    font-size: .78rem;
    border-radius: 3px;
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid;
}

.sv .sv-alert-danger {
    background: rgba(248, 113, 113, .08);
    border-color: rgba(248, 113, 113, .3);
    color: #fca5a5;
}

.sv .sv-alert-success {
    background: rgba(74, 222, 128, .08);
    border-color: rgba(74, 222, 128, .3);
    color: #86efac;
}

/* Account type cards */
.sv .sv-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.sv .sv-type-opt {
    display: none;
}

.sv .sv-type-lbl {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.1rem .75rem;
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--sv-border);
    border-radius: 4px;
    cursor: none;
    transition: background .2s, border-color .25s;
    text-align: center;
}

.sv .sv-type-lbl:hover {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(201, 169, 110, .3);
}

.sv .sv-type-opt:checked+.sv-type-lbl {
    background: rgba(201, 169, 110, .1);
    border-color: rgba(201, 169, 110, .55);
}

.sv .sv-type-ico {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: .95rem;
    border: 1px solid var(--sv-border);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .5);
    transition: all .2s;
}

.sv .sv-type-opt:checked+.sv-type-lbl .sv-type-ico {
    background: rgba(201, 169, 110, .15);
    border-color: rgba(201, 169, 110, .5);
    color: var(--sv-gold);
}

.sv .sv-type-ttl {
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .6);
    transition: color .2s;
}

.sv .sv-type-sub {
    font-family: 'DM Mono', monospace;
    font-size: .58rem;
    color: rgba(255, 255, 255, .28);
    letter-spacing: .06em;
}

.sv .sv-type-opt:checked+.sv-type-lbl .sv-type-ttl {
    color: #fff;
}

.sv .sv-type-opt:checked+.sv-type-lbl .sv-type-sub {
    color: var(--sv-gold);
    opacity: .75;
}

/* Error messages */
.sv .sv-error-msg {
    font-family: 'DM Mono', monospace;
    font-size: .65rem;
    color: #f87171;
    margin-top: .35rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* Conditional sections */
.sv .sv-cond {
    display: none;
}

.sv .sv-cond.active {
    display: block;
}

/* Password strength */
.sv .sv-pw-bars {
    display: flex;
    gap: 4px;
    margin-top: .5rem;
    margin-bottom: .3rem;
}

.sv .sv-pw-bar {
    height: 3px;
    flex: 1;
    border-radius: 1.5px;
    background: rgba(255, 255, 255, .1);
    transition: background .3s;
}

.sv .sv-pw-bar.w {
    background: #f87171;
}

.sv .sv-pw-bar.f {
    background: #fbbf24;
}

.sv .sv-pw-bar.s {
    background: #4ade80;
}

.sv .sv-pw-lbl {
    font-family: 'DM Mono', monospace;
    font-size: .6rem;
    letter-spacing: .08em;
}

/* Checkbox */
.sv .sv-chk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .25rem;
    margin-bottom: 1.2rem;
}

.sv .sv-chk-row.sv-chk-terms {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-top: .25rem;
}

.sv .sv-chk-pair {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.sv .sv-chk {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
    border: 1px solid rgba(201, 169, 110, .35);
    background: transparent;
    cursor: none;
    appearance: none;
    -webkit-appearance: none;
    transition: background .2s, border-color .2s;
    display: grid;
    place-items: center;
}

.sv .sv-chk:checked {
    background: var(--sv-gold);
    border-color: var(--sv-gold);
}

.sv .sv-chk:checked::after {
    content: '';
    width: 5px;
    height: 9px;
    border: 2px solid var(--sv-ink);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-1px);
    display: block;
}

.sv .sv-chk-lbl {
    font-size: .84rem;
    color: rgba(255, 255, 255, .5);
}

.sv .sv-chk-txt {
    font-size: .84rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.6;
}

.sv .sv-chk-txt a {
    color: var(--sv-gold);
    text-decoration: none;
}

.sv .sv-chk-txt a:hover {
    text-decoration: underline;
}

/* Remember me + forgot row */
.sv .sv-forgot-ln {
    font-family: 'DM Mono', monospace;
    font-size: .68rem;
    letter-spacing: .05em;
    color: var(--sv-gold);
    text-decoration: none;
    transition: opacity .2s;
}

.sv .sv-forgot-ln:hover {
    opacity: .75;
    text-decoration: underline;
}

/* reCAPTCHA */
.sv .sv-recaptcha {
    margin-top: .25rem;
    margin-bottom: .25rem;
}

/* Submit */
.sv .sv-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .95rem;
    background: linear-gradient(135deg, var(--sv-gold), var(--sv-gold-mid));
    color: var(--sv-ink);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: none;
    margin-top: 1.25rem;
    transition: transform .25s, box-shadow .25s;
}

.sv .sv-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(201, 169, 110, .35);
}

.sv .sv-submit:active {
    transform: none;
}

/* intlTelInput overrides */
.sv .iti {
    width: 100%;
    display: flex;
}

.sv .iti .iti__flag-container {
    left: 0;
    right: auto;
}

.sv .iti__selected-flag {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(201, 169, 110, .2);
    border-right: none;
    border-radius: 3px 0 0 3px;
    padding: 0 .75rem;
    transition: background .2s;
}

.sv .iti__selected-flag:hover,
.sv .iti__selected-flag:focus {
    background: rgba(201, 169, 110, .08);
}

.sv .iti input,
.sv .iti input[type=tel] {
    flex: 1;
    padding-left: 2.5rem !important;
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid rgba(201, 169, 110, .2) !important;
    border-left: none !important;
    border-radius: 0 3px 3px 0 !important;
    color: #fff !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: .9rem !important;
    outline: none !important;
    transition: border-color .25s, background .25s, box-shadow .25s;
}

.sv .iti input:focus {
    border-color: var(--sv-gold) !important;
    background: rgba(201, 169, 110, .06) !important;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, .1) !important;
}

.sv .iti input::placeholder {
    color: rgba(255, 255, 255, .2) !important;
}

.sv .iti__country-list {
    background: #1a1e25;
    border: 1px solid var(--sv-border);
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
    color: rgba(255, 255, 255, .75);
    font-family: 'Outfit', sans-serif;
    font-size: .88rem;
}

.sv .iti__country.iti__highlight {
    background: rgba(201, 169, 110, .1);
}

.sv .iti__country:hover {
    background: rgba(255, 255, 255, .05);
}

.sv .iti__dial-code {
    color: rgba(255, 255, 255, .4);
}

/* Dropdown container — needs explicit dark bg so the search input
   doesn't show through as white-on-white */
.sv .iti__dropdown-content {
    background: #1a1e25 !important;
}

.sv .iti__search-input {
    /* Solid dark bg — rgba shows through the white dropdown container */
    background: #232830 !important;
    border: 1px solid rgba(201, 169, 110, .2) !important;
    /* !important needed: Bootstrap/browser sets color on inputs globally */
    color: #fff !important;
    caret-color: var(--sv-gold);
    font-family: 'Outfit', sans-serif;
    font-size: .85rem;
    padding: .5rem .75rem;
    border-radius: 3px;
    outline: none !important;
    width: 100%;
    box-sizing: border-box;
}

.sv .iti__search-input::placeholder {
    color: rgba(255, 255, 255, .3) !important;
}

.sv .iti__search-input:focus {
    border-color: rgba(201, 169, 110, .5) !important;
    box-shadow: 0 0 0 2px rgba(201, 169, 110, .1) !important;
}

.sv .iti__arrow {
    border-top-color: rgba(201, 169, 110, .6);
}

.sv .iti__arrow--up {
    border-bottom-color: rgba(201, 169, 110, .6);
}

/* Side panel */
.sv .sv-side-h {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 400;
    color: #fff;
}

.sv .sv-side-h em {
    font-style: italic;
    color: var(--sv-gold);
}

.sv .sv-side-p {
    font-size: .9rem;
    color: var(--sv-muted);
    line-height: 1.6;
    margin-top: .5rem;
}
