
@import url("./estedad-local.css");

/* ==========================================================
   RAD2 CUSTOMER SIGNUP EXPERIENCE V1
   Burgundy / cream / champagne / GZ interaction green
   ========================================================== */

:root{
    color-scheme: only light;
    --reg-burgundy:#7a1631;
    --reg-burgundy-dark:#551021;

    --reg-cream:#fff8ef;
    --reg-cream-deep:#f5e7d8;
    --reg-paper:#fffdf9;

    --reg-gold:#d5ac58;
    --reg-gold-soft:#efd79f;

    --reg-text:#2d2926;
    --reg-muted:#756b65;

    --reg-green:#4f6a57;
    --reg-green-dark:#405647;

    --reg-border:rgba(112,73,55,.14);
    --reg-shadow:0 30px 75px rgba(70,34,31,.13);
}

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
}

body.register-premium-page{
    margin:0;
    min-height:100vh;
    min-height:100dvh;

    direction:rtl;

    color:var(--reg-text);

    font-family:
        "Estedad",
        Tahoma,
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(122,22,49,.105),
            transparent 29%
        ),
        radial-gradient(
            circle at 92% 82%,
            rgba(213,172,88,.13),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #fffaf4,
            #fff7ed 42%,
            #f9eee3
        );

    overflow-x:hidden;
}

/* soft living texture */
body.register-premium-page::before{
    content:"";

    position:fixed;
    inset:0;
    z-index:-3;

    pointer-events:none;

    background:
        repeating-linear-gradient(
            115deg,
            rgba(122,22,49,.018) 0,
            rgba(122,22,49,.018) 1px,
            transparent 1px,
            transparent 18px
        );

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.6),
            transparent 86%
        );
}

/* ==========================================================
   MAIN LAYOUT
   ========================================================== */

.register-experience{
    position:relative;
    z-index:1;

    width:min(1180px,calc(100% - 40px));
    min-height:100vh;
    min-height:100dvh;

    margin:auto;

    display:grid;
    grid-template-columns:
        minmax(0,.88fr)
        minmax(420px,1.12fr);

    gap:clamp(28px,5vw,74px);

    align-items:center;

    padding:
        clamp(28px,5vw,64px)
        0;
}

/* ==========================================================
   STORY PANEL
   ========================================================== */

.register-story{
    position:relative;
    isolation:isolate;

    min-height:620px;

    display:flex;
    flex-direction:column;

    padding:
        clamp(30px,4vw,50px);

    overflow:hidden;

    border:
        1px solid
        rgba(213,172,88,.28);

    border-radius:30px;

    color:#fff8f3;

    background:
        linear-gradient(
            145deg,
            rgba(82,13,31,.985),
            rgba(122,22,49,.965) 58%,
            rgba(94,21,38,.99)
        );

    box-shadow:
        0 30px 75px
        rgba(85,16,33,.18);
}

.register-story::before{
    content:"";

    position:absolute;
    z-index:-1;

    width:430px;
    height:430px;

    left:-170px;
    bottom:-180px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(237,202,128,.28),
            transparent 67%
        );
}

.register-story::after{
    content:"";

    position:absolute;
    z-index:-1;

    width:300px;
    height:300px;

    right:-150px;
    top:-110px;

    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(255,241,207,.15),
            transparent 67%
        );
}

.register-brand{
    display:inline-flex;
    flex-direction:column;

    width:max-content;

    color:#fff;
    text-decoration:none;
}

.register-brand-main{
    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(24px,3vw,34px);

    letter-spacing:.02em;
}

.register-brand-sub{
    margin-top:3px;

    color:
        rgba(255,245,228,.66);

    font-size:11px;
    letter-spacing:.08em;
}

.register-story-copy{
    margin-top:auto;
}

.register-eyebrow{
    margin:
        0 0 12px;

    color:
        #efd59d;

    font-size:13px;
    font-weight:700;
}

.register-story h2{
    margin:
        0 0 16px;

    max-width:470px;

    font-family:
        "Estedad",
        Tahoma,
        sans-serif;

    font-size:
        clamp(31px,4.3vw,53px);

    line-height:1.45;
}

.register-story-copy > p:last-child{
    max-width:50ch;

    margin:0;

    color:
        rgba(255,245,238,.77);

    font-size:
        15px;

    line-height:2.05;
}

.register-trust-list{
    display:grid;

    gap:10px;

    margin-top:30px;
}

.register-trust-list > div{
    display:flex;

    gap:11px;
    align-items:flex-start;

    padding:
        12px 14px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius:15px;

    background:
        rgba(255,255,255,.055);

    backdrop-filter:
        blur(8px);
}

.register-trust-dot{
    width:8px;
    height:8px;

    flex:0 0 auto;

    margin-top:8px;

    border-radius:50%;

    background:
        var(--reg-gold-soft);

    box-shadow:
        0 0 12px
        rgba(239,215,159,.35);
}

.register-trust-list p{
    margin:0;
}

.register-trust-list strong{
    display:block;

    font-size:13px;
    line-height:1.8;
}

.register-trust-list small{
    display:block;

    margin-top:1px;

    color:
        rgba(255,245,238,.65);

    font-size:11px;
    line-height:1.8;
}

/* moving warm light */
.register-story-shine{
    position:absolute;
    z-index:5;

    top:-20%;
    bottom:-20%;

    left:-35%;

    width:18%;

    pointer-events:none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,244,215,.04),
            rgba(255,232,175,.20),
            rgba(255,255,255,.16),
            transparent
        );

    transform:
        skewX(-18deg)
        translateX(-600%);

    animation:
        registerStorySweep
        8s
        ease-in-out
        infinite;
}

/* ==========================================================
   REGISTER CARD
   ========================================================== */

.register-card{
    position:relative;
    isolation:isolate;

    padding:
        clamp(28px,4.2vw,52px);

    overflow:hidden;

    border:
        1px solid
        rgba(213,172,88,.30);

    border-radius:30px;

    background:
        rgba(255,253,249,.88);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        var(--reg-shadow);
}

.register-card::before{
    content:"";

    position:absolute;
    z-index:-2;

    width:185%;
    aspect-ratio:1;

    top:50%;
    left:50%;

    background:
        conic-gradient(
            from 0deg,
            transparent,
            rgba(122,22,49,.10),
            rgba(213,172,88,.23),
            transparent 22%,
            transparent 72%,
            rgba(213,172,88,.17),
            rgba(122,22,49,.08),
            transparent
        );

    transform:
        translate(-50%,-50%)
        rotate(0deg);

    animation:
        registerOrbit
        15s
        linear
        infinite;
}

.register-card::after{
    content:"";

    position:absolute;
    z-index:-1;

    inset:2px;

    border-radius:27px;

    background:
        linear-gradient(
            145deg,
            rgba(255,253,249,.985),
            rgba(255,248,239,.95)
        );
}

.register-card-intro{
    position:relative;
    z-index:1;

    margin-bottom:24px;
}

.register-mini-line{
    display:block;

    width:48px;
    height:2px;

    margin-bottom:14px;

    border-radius:999px;

    background:
        linear-gradient(
            90deg,
            var(--reg-burgundy),
            var(--reg-gold),
            transparent
        );
}

.register-card-intro > p:first-of-type{
    margin:0 0 5px;

    color:
        var(--reg-burgundy);

    font-size:12px;
    font-weight:700;
}

.register-card-intro h1{
    margin:
        0 0 8px;

    font-size:
        clamp(28px,3vw,42px);

    line-height:1.5;
}

.register-card-subtitle{
    margin:0;

    color:
        var(--reg-muted);

    font-size:14px;
}

/*
 * Existing page content is retained.
 * Hide duplicate page heading if original had one.
 */
.register-original-content > h1:first-child,
.register-original-content > h2:first-child{
    display:none;
}

/* ==========================================================
   ORIGINAL REGISTER FORM
   ========================================================== */

#registerForm{
    position:relative;
    z-index:2;

    display:grid;

    gap:16px;

    margin:0;
}

#registerForm > div,
#registerForm label{
    min-width:0;
}

#registerForm label{
    display:block;

    margin-bottom:7px;

    color:
        #514842;

    font-size:13px;
    font-weight:700;
}

#registerForm input{
    width:100%;
    min-height:50px;

    padding:
        11px 14px;

    border:
        1px solid
        rgba(97,69,58,.17);

    border-radius:14px;

    outline:none;

    background:
        rgba(255,255,255,.78);

    color:
        var(--reg-text);

    font:inherit;

    font-size:16px;

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.72);

    transition:
        border-color .20s ease,
        box-shadow .22s ease,
        background .20s ease,
        transform .18s ease;
}

#registerForm input::placeholder{
    color:
        rgba(74,65,60,.40);
}

#registerForm input:hover{
    border-color:
        rgba(122,22,49,.23);
}

#registerForm input:focus{
    border-color:
        rgba(79,106,87,.48);

    background:
        rgba(251,253,251,.96);

    box-shadow:
        inset 0 -18px 30px
        rgba(79,106,87,.045),

        0 0 0 4px
        rgba(79,106,87,.08),

        0 8px 20px
        rgba(79,106,87,.055);

    transform:
        translateY(-1px);
}

/* prevent LTR phone/email from looking messy */
#mobile,
#email{
    direction:ltr;
    text-align:left;
}

/* Password remains visually neutral */
#password{
    direction:ltr;
    text-align:left;
}

/* Submit button — whichever button the existing form has */
#registerForm button[type="submit"],
#registerSubmit{
    position:relative;

    width:100%;
    min-height:52px;

    margin-top:3px;

    overflow:hidden;

    border:
        1px solid
        rgba(122,22,49,.10);

    border-radius:15px;

    cursor:pointer;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            var(--reg-burgundy),
            #8a1b3a
        );

    font:inherit;
    font-weight:700;
    font-size:15px;

    box-shadow:
        0 12px 26px
        rgba(122,22,49,.17);

    transition:
        transform .18s ease,
        box-shadow .20s ease,
        background .20s ease;
}

#registerForm button[type="submit"]::after,
#registerSubmit::after{
    content:"";

    position:absolute;

    top:-70%;
    bottom:-70%;

    left:-38%;

    width:18%;

    pointer-events:none;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,236,188,.38),
            rgba(255,255,255,.72),
            transparent
        );

    transform:
        skewX(-20deg)
        translateX(-520%);

    animation:
        registerButtonSweep
        5.8s
        ease-in-out
        infinite;
}

#registerForm button[type="submit"]:hover,
#registerSubmit:hover{
    transform:
        translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #681128,
            var(--reg-burgundy)
        );

    box-shadow:
        0 16px 32px
        rgba(122,22,49,.22);
}

#registerForm button[type="submit"]:active,
#registerSubmit:active{
    transform:
        translateY(0)
        scale(.99);
}

#registerForm button[type="submit"]:disabled,
#registerSubmit:disabled{
    cursor:wait;

    opacity:.63;

    transform:none;
}

/* ==========================================================
   STATUS
   ========================================================== */

#registerStatus{
    margin:
        0 0 4px;

    padding:
        11px 13px;

    border:
        1px solid
        rgba(122,22,49,.12);

    border-radius:13px;

    background:
        rgba(255,248,239,.9);

    color:
        #655852;

    font-size:13px;
    line-height:1.8;
}

#registerStatus[hidden]{
    display:none !important;
}

#registerStatus[data-state="success"],
#registerStatus.success{
    border-color:
        rgba(79,106,87,.20);

    background:
        linear-gradient(
            135deg,
            rgba(240,246,241,.98),
            rgba(251,253,251,.98)
        );

    color:
        var(--reg-green-dark);

    box-shadow:
        inset 0 -14px 26px
        rgba(79,106,87,.05);
}

#registerStatus[data-state="error"],
#registerStatus.error{
    border-color:
        rgba(122,22,49,.17);

    background:
        #fff4f4;

    color:
        #7a1631;
}

/* ==========================================================
   ORIGINAL LINKS + LOGIN HELPER
   ========================================================== */

.register-original-content a,
.register-login-helper a{
    color:
        var(--reg-burgundy);

    font-weight:700;

    text-decoration:none;
}

.register-original-content a:hover,
.register-login-helper a:hover{
    text-decoration:underline;
}

.register-login-helper{
    position:relative;
    z-index:2;

    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;

    gap:7px;

    margin-top:22px;
    padding-top:18px;

    border-top:
        1px solid
        var(--reg-border);

    color:
        var(--reg-muted);

    font-size:13px;
}

/* ==========================================================
   PAGE EDGE LIGHTS
   ========================================================== */

.register-edge{
    position:fixed;
    z-index:10;

    top:10%;
    bottom:8%;

    width:1px;

    pointer-events:none;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(213,172,88,.34),
            rgba(122,22,49,.25),
            rgba(213,172,88,.36),
            transparent
        );
}

.register-edge-left{
    left:7px;
}

.register-edge-right{
    right:7px;
}

.register-edge::after{
    content:"";

    position:absolute;

    left:-2px;
    top:-70px;

    width:5px;
    height:70px;

    border-radius:999px;

    background:
        linear-gradient(
            180deg,
            transparent,
            #efd59f,
            rgba(255,255,255,.95),
            #d5ac58,
            transparent
        );

    box-shadow:
        0 0 12px
        rgba(213,172,88,.24);

    animation:
        registerEdgeMove
        8.5s
        ease-in-out
        infinite;
}

.register-edge-right::after{
    animation-delay:-4.25s;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */

@keyframes registerStorySweep{
    0%,
    55%{
        transform:
            skewX(-18deg)
            translateX(-600%);

        opacity:0;
    }

    63%{
        opacity:.9;
    }

    82%{
        opacity:.9;
    }

    100%{
        transform:
            skewX(-18deg)
            translateX(900%);

        opacity:0;
    }
}

@keyframes registerOrbit{
    from{
        transform:
            translate(-50%,-50%)
            rotate(0deg);
    }

    to{
        transform:
            translate(-50%,-50%)
            rotate(360deg);
    }
}

@keyframes registerButtonSweep{
    0%,
    58%{
        transform:
            skewX(-20deg)
            translateX(-520%);

        opacity:0;
    }

    65%{
        opacity:1;
    }

    84%{
        opacity:1;
    }

    100%{
        transform:
            skewX(-20deg)
            translateX(850%);

        opacity:0;
    }
}

@keyframes registerEdgeMove{
    0%{
        transform:
            translateY(-5vh);

        opacity:0;
    }

    12%{
        opacity:.9;
    }

    88%{
        opacity:.8;
    }

    100%{
        transform:
            translateY(82vh);

        opacity:0;
    }
}

/* ==========================================================
   TABLET / MOBILE
   ========================================================== */

@media(max-width:900px){

    .register-experience{
        width:min(
            680px,
            calc(100% - 28px)
        );

        grid-template-columns:1fr;

        gap:18px;

        padding:
            22px 0 34px;
    }

    .register-story{
        min-height:auto;

        padding:
            26px;

        border-radius:22px;
    }

    .register-story-copy{
        margin-top:50px;
    }

    .register-story h2{
        max-width:560px;

        font-size:
            clamp(28px,7vw,42px);
    }

    .register-trust-list{
        grid-template-columns:
            repeat(3,minmax(0,1fr));

        gap:7px;
    }

    .register-trust-list > div{
        display:block;

        padding:11px;

        text-align:center;
    }

    .register-trust-dot{
        display:block;

        margin:
            0 auto 7px;
    }

    .register-card{
        padding:
            28px 24px;

        border-radius:22px;
    }

    .register-card::after{
        border-radius:19px;
    }
}

@media(max-width:600px){

    .register-experience{
        width:
            calc(100% - 20px);

        padding-top:10px;
    }

    .register-story{
        padding:
            22px 18px;

        border-radius:19px;
    }

    .register-story-copy{
        margin-top:18px;
    }

    .register-story h2{
        margin-bottom:10px;

        font-size:
            clamp(24px,6vw,30px);
    }

    .register-story-copy > p:last-child{
        font-size:13px;
        line-height:1.9;
    }

    .register-trust-list{
        grid-template-columns:1fr;
        margin-top:16px;
        gap:8px;
    }

    .register-trust-list > div{
        display:flex;
        text-align:right;
        padding:10px 12px;
    }

    .register-trust-dot{
        margin:
            8px 0 0;
    }

    .register-card{
        padding:
            26px 17px;

        border-radius:19px;
    }

    #registerForm{
        gap:13px;
    }

    #registerForm input{
        min-height:48px;
    }

    .register-edge{
        opacity:.45;
    }

    .register-edge-left{
        left:3px;
    }

    .register-edge-right{
        right:3px;
    }
}

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

@media(prefers-reduced-motion:reduce){

    .register-story-shine,
    .register-card::before,
    #registerForm button[type="submit"]::after,
    #registerSubmit::after,
    .register-edge::after{
        animation:none !important;
    }

    #registerForm input,
    #registerForm button{
        transition:none !important;
    }
}
