@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Great+Vibes&family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================================
   INSANE LABAN — REGISTER
   Same design system as the rest of the customer pages.
   Class names, layout and breakpoints unchanged — this is a reskin.

   NOTE: .account-page and .account-card are also used by the
   customer account page. Never load both stylesheets together.
========================================================= */

:root{
    --navy-900:#04102a;
    --navy-800:#071a3a;
    --navy-700:#0d2a55;
    --gold:#d9a441;
    --gold-soft:#e8bd68;
    --violet:#6b3df5;
    --violet-hi:#7f57ff;

    --line:rgba(255,255,255,.12);
    --surface:rgba(255,255,255,.05);
    --field:rgba(255,255,255,.06);
    --text-mute:rgba(255,255,255,.7);
    --text-dim:rgba(255,255,255,.5);

    --green:#6ddc9d;
    --red:#ff8f8a;

    --display:"Playfair Display",Georgia,serif;
    --script:"Great Vibes",cursive;
    --sans:"DM Sans",Arial,sans-serif;
}


/* =========================================================
   RESET
========================================================= */

*{box-sizing:border-box}

html,
body{
    margin:0;
    padding:0;
    width:100%;
    min-height:100%;
    overflow-x:hidden;
}

body{
    background:
        radial-gradient(circle at 12% 8%,rgba(64,131,192,.26),transparent 45%),
        radial-gradient(circle at 88% 85%,rgba(107,61,245,.16),transparent 50%),
        var(--navy-900);
    color:#fff;
    font-family:var(--sans);
    -webkit-font-smoothing:antialiased;
}

:focus-visible{outline:3px solid var(--gold-soft);outline-offset:3px;border-radius:6px}


/* =========================================================
   PAGE
========================================================= */

.account-page{
    width:100%;
    min-height:calc(100vh - 80px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:50px 30px;
}


/* =========================================================
   MAIN CARD
========================================================= */

.account-card{
    width:100%;
    max-width:1100px;
    min-height:650px;
    display:flex;
    overflow:hidden;
    border:1px solid rgba(232,189,104,.2);
    border-radius:28px;
    background:var(--navy-800);
    box-shadow:0 28px 70px rgba(3,16,40,.6);
}


/* =========================================================
   LEFT PANEL
========================================================= */

.account-image{
    position:relative;
    width:46%;
    min-height:650px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:50px;
    color:#fff;
    text-align:center;
    background:
        radial-gradient(circle at 80% 20%,rgba(64,131,192,.45),transparent 55%),
        linear-gradient(145deg,#0a2a50,#051726);
}

.account-image::before{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    top:-130px;
    right:-140px;
    border-radius:50%;
    background:rgba(232,189,104,.07);
}

.account-image::after{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    bottom:-120px;
    left:-120px;
    border-radius:50%;
    background:rgba(255,255,255,.04);
}

.account-image-content{
    position:relative;
    z-index:2;
    max-width:400px;
}

.account-image img{
    width:150px;
    height:150px;
    display:block;
    margin:0 auto 30px;
    object-fit:contain;
}

.account-image h1{
    margin:0;
    color:#fff;
    font-family:var(--display);
    font-size:40px;
    font-weight:800;
    line-height:1.1;
    letter-spacing:-1px;
}

.account-image p{
    max-width:340px;
    margin:24px auto 0;
    color:var(--text-mute);
    font-size:15px;
    line-height:1.7;
}


/* =========================================================
   RIGHT PANEL
========================================================= */

.account-form{
    width:54%;
    padding:55px 60px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:var(--navy-800);
}

.form-logo{
    width:70px;
    height:70px;
    margin-bottom:18px;
    object-fit:contain;
}

.account-form h2{
    margin:0 0 10px;
    color:#fff;
    font-family:var(--display);
    font-size:32px;
    font-weight:800;
    letter-spacing:-.5px;
}

.account-form-intro{
    margin:0 0 28px;
    color:var(--text-mute);
    font-size:14px;
    line-height:1.6;
}


/* =========================================================
   FORM
========================================================= */

.account-form form{width:100%}

.form-label{
    display:block;
    margin-bottom:8px;
    color:#fff;
    font-size:13.5px;
    font-weight:700;
}

.form-control{
    width:100%;
    min-height:52px;
    padding:12px 15px;
    border:1px solid var(--line);
    border-radius:12px;
    background:var(--field);
    color:#fff;
    font-family:inherit;
    font-size:14px;
    outline:none;
    box-shadow:none;
    transition:border-color .2s ease,box-shadow .2s ease;
}

.form-control::placeholder{color:rgba(255,255,255,.38)}

.form-control:focus{
    border-color:var(--violet-hi);
    box-shadow:0 0 0 4px rgba(127,87,255,.2);
}

/* stops Chrome autofill painting fields white with black text */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{
    -webkit-text-fill-color:#fff;
    -webkit-box-shadow:0 0 0 1000px #0d2247 inset;
    caret-color:#fff;
    transition:background-color 9999s ease-in-out 0s;
}


/* =========================================================
   REFERRAL QUESTION
========================================================= */

.referral-question{margin-bottom:24px}

.referral-options{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.referral-option{
    position:relative;
    display:block;
    cursor:pointer;
}

.referral-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.referral-option-content{
    min-height:68px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:12px;
    background:rgba(255,255,255,.04);
    transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.referral-option-content > i{
    width:36px;
    height:36px;
    flex:0 0 36px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(232,189,104,.32);
    border-radius:10px;
    background:rgba(232,189,104,.1);
    color:var(--gold-soft);
}

.referral-option-content span{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.referral-option-content strong{
    color:#fff;
    font-size:13px;
}

.referral-option-content small{
    color:var(--text-dim);
    font-size:11.5px;
}

.referral-option input:checked + .referral-option-content{
    border-color:var(--violet-hi);
    background:rgba(107,61,245,.18);
    box-shadow:0 0 0 3px rgba(127,87,255,.14);
}

/* keyboard users need to see which option is focused */
.referral-option input:focus-visible + .referral-option-content{
    outline:3px solid var(--gold-soft);
    outline-offset:2px;
}


/* =========================================================
   REFERRAL CODE
========================================================= */

.referral-code-wrapper{
    display:none;
    margin-top:15px;
    padding:16px;
    border:1px solid rgba(232,189,104,.22);
    border-radius:12px;
    background:rgba(232,189,104,.06);
}

.referral-code-wrapper.show{display:block}

.referral-input-container{position:relative}

.referral-input-container > i{
    position:absolute;
    left:15px;
    top:50%;
    z-index:2;
    transform:translateY(-50%);
    color:var(--gold-soft);
}

.referral-input-container .form-control{
    padding-left:43px;
    letter-spacing:1.5px;
    text-transform:uppercase;
}

.referral-help{
    display:block;
    margin-top:7px;
    color:var(--text-dim);
    font-size:11.5px;
}


/* =========================================================
   ERRORS
========================================================= */

.errors{
    margin-bottom:22px;
    padding:13px 15px;
    border:1px solid rgba(255,143,138,.35);
    border-radius:12px;
    background:rgba(255,143,138,.12);
    color:var(--red);
    font-size:13px;
}

.errors div{
    display:flex;
    align-items:flex-start;
    gap:8px;
}

.errors div + div{margin-top:8px}

.errors i{margin-top:2px}


/* =========================================================
   TERMS
========================================================= */

.terms-checkbox{
    margin:20px 0;
    color:var(--text-mute);
    font-size:13px;
}

.terms-checkbox label{
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
}

.terms-checkbox input{
    width:18px;
    height:18px;
    flex-shrink:0;
    accent-color:var(--violet);
}

.terms-link{
    color:var(--gold-soft);
    font-weight:700;
    text-decoration:none;
}

.terms-link:hover{
    text-decoration:underline;
    text-underline-offset:3px;
}


/* =========================================================
   CREATE ACCOUNT
========================================================= */

.create-btn{
    width:100%;
    min-height:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    border:none;
    border-radius:14px;
    background:linear-gradient(135deg,var(--violet),#5b30dc);
    color:#fff;
    font-family:var(--sans);
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 14px 30px -12px rgba(84,48,210,.95);
    transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
}

.create-btn:hover{
    background:var(--violet-hi);
    transform:translateY(-2px);
}

.create-btn:active{transform:translateY(0)}


/* =========================================================
   LOGIN LINK
========================================================= */

.login-link{
    margin-top:22px;
    color:var(--text-mute);
    font-size:14px;
    text-align:center;
}

.login-link a{
    color:var(--gold-soft);
    font-weight:700;
    text-decoration:none;
}

.login-link a:hover{
    text-decoration:underline;
    text-underline-offset:3px;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.security-note{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-top:18px;
    color:var(--text-dim);
    font-size:11.5px;
}

.security-note i{color:var(--green)}


/* =========================================================
   NAVBAR SAFETY
========================================================= */

#navbar{
    position:relative;
    z-index:100;
    width:100%;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:1000px){

    .account-card{max-width:900px}

    .account-image{
        width:42%;
        padding:35px;
    }

    .account-form{
        width:58%;
        padding:45px;
    }

    .account-image h1{font-size:32px}
}


@media (max-width:800px){

    .account-page{
        min-height:auto;
        padding:30px 20px;
    }

    .account-card{
        max-width:600px;
        flex-direction:column;
    }

    .account-image{
        width:100%;
        min-height:320px;
    }

    .account-form{
        width:100%;
        padding:45px 35px;
    }
}


@media (max-width:576px){

    /* top padding clears the fixed top bar */
    .account-page{padding:88px 15px 30px}

    .account-card{border-radius:20px}

    .account-image{
        min-height:280px;
        padding:25px;
    }

    .account-image img{
        width:100px;
        height:100px;
        margin-bottom:20px;
    }

    .account-image h1{font-size:26px}

    .account-image p{font-size:13px}

    .account-form{padding:35px 22px}

    .account-form h2{font-size:25px}

    /* 16px stops iOS zooming the page on focus */
    .form-control{font-size:16px}

    .referral-options{grid-template-columns:1fr}
}


/* =========================================================
   MOTION
========================================================= */

@media (prefers-reduced-motion:reduce){
    *{animation:none !important;transition:none !important}
}
/* =========================================================
   INSANE LABAN — REGISTER
   Password controls + email verification step

   -> append to css/register.css
========================================================= */


/* ---------------------------------------------------------
   PASSWORD FIELD
--------------------------------------------------------- */

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 46px;
}


/*
| The eye control did not exist before, so anyone who mistyped
| a password had no way of checking it.
*/

.password-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;
    background: transparent;

    color: #8a8f96;
    font-size: 14px;

    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.password-toggle:hover {
    color: #191919;
    background: rgba(0, 0, 0, .05);
}


.password-help {
    display: block;
    margin-top: 6px;

    color: #8a8f96;
    font-size: 12px;
    line-height: 1.5;
}


/* ---------------------------------------------------------
   MATCH FEEDBACK
--------------------------------------------------------- */

.password-match {
    margin-top: 7px;
    min-height: 16px;

    font-size: 12.5px;
    font-weight: 600;
}

.password-match.is-match {
    color: #0b6b40;
}

.password-match.is-match::before {
    content: '\2713\00a0';
}

.password-match.is-mismatch {
    color: #b0271d;
}

.password-match.is-mismatch::before {
    content: '\2715\00a0';
}


/* =========================================================
   VERIFICATION STEP
========================================================= */

/*
| Shown in place of the form once the code has been sent. The
| account does not exist yet at this point - it is created only
| when the code is confirmed.
*/

.verify-panel {
    text-align: center;
}

.verify-icon {
    width: 62px;
    height: 62px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;
    background: rgba(107, 61, 245, .1);

    color: #6b3df5;
    font-size: 25px;
}

.verify-panel h3 {
    margin: 0 0 10px;

    color: #191919;
    font-size: 24px;
    font-weight: 700;
}

.verify-intro {
    margin: 0 0 22px;

    color: #6a6f76;
    font-size: 14px;
    line-height: 1.65;
}

.verify-intro strong {
    color: #191919;
    word-break: break-word;
}


.verify-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-bottom: 20px;
    padding: 11px 14px;

    border: 1px solid rgba(11, 107, 64, .2);
    border-radius: 10px;
    background: rgba(11, 107, 64, .07);

    color: #0b6b40;
    font-size: 13px;
}


/* ---------------------------------------------------------
   CODE INPUT
--------------------------------------------------------- */

.otp-input {
    height: 58px;
    margin-bottom: 18px;

    font-size: 26px;
    font-weight: 700;
    letter-spacing: 10px;
    text-align: center;
}

.otp-input::placeholder {
    letter-spacing: 10px;
    color: #c9ccd0;
}


/* ---------------------------------------------------------
   SECONDARY ACTIONS
--------------------------------------------------------- */

.verify-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;

    margin-top: 18px;
    padding-top: 16px;

    border-top: 1px solid #eceae6;
}

.verify-inline {
    margin: 0;
}

.verify-link-btn {
    width: 100%;
    padding: 8px 0;

    border: none;
    background: transparent;

    color: #6b3df5;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.verify-link-btn:hover {
    text-decoration: underline;
}


/*
| Starting over is a retreat, not an equal option, so it is
| quieter than resending the code.
*/

.verify-cancel {
    color: #8a8f96;
    font-weight: 500;
}


@media (max-width: 600px) {

    .verify-panel h3 {
        font-size: 21px;
    }

    .otp-input {
        height: 54px;
        font-size: 22px;
        letter-spacing: 8px;
    }

}