/* ----------------------------------------------------------------------------- */
/* RESET + GLOBAL */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Josefin Sans", sans-serif;
}

:root{
    --red:#db133d;
    --yellow:#f5e709;
    --dark:#262f35;
    --card:#ffffff;
    --field:#d9d9d9;

    --radius-lg: 40px;
    --radius-md: 15px;
}

/* Theme helpers */
.red{
    font-optical-sizing: auto;
    background-color: var(--red);
    color: #fff;
}
.red > div > ul > li > i > svg,
.red > div i > svg{ fill:#fff; }

.yellow{
    font-optical-sizing: auto;
    background-color: var(--yellow);
    color: var(--dark);
}
.yellow > div > ul > li > i > svg,
.yellow > div i > svg{ fill: var(--dark); }

/* ----------------------------------------------------------------------------- */
/* PAGE LAYOUT */
.signup-page{
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 24px 16px;
    text-align: center;
}

/* Logo block */
.container-1{
    position: fixed;
    top: 12px;
    left: 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;
    z-index: 10;
}

.container-1 > img{
    width: clamp(56px, 8vw, 90px);
    height: auto;
}

.container-1 > p{
    font-weight: 500;
    font-size: clamp(16px, 2.8vw, 26px);
    letter-spacing: 5px;
}

/* Card */
.container-2{
    width: min(480px, 100%);
    border-radius: var(--radius-lg);
    padding: 18px;

    background-color: var(--card);
    color: var(--dark);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-top: 72px;
    margin-bottom: 30px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.container-2 > p.sign-up{
    width: 100%;
    text-align: left;

    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}

/* Demo disclaimer */
/*.demo-note{*/
/*    width: 100%;*/
/*    text-align: left;*/
/*    font-size: 12.5px;*/
/*    line-height: 1.35;*/
/*    color: rgba(0,0,0,0.65);*/
/*    margin-bottom: 14px;*/
/*}*/

/* Form */
.container-2 > form{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Labels */
.field-label{
    width: 100%;
    text-align: left;
    font-size: 12.5px;
    color: rgba(0,0,0,0.75);
    margin-top: 4px;
}

/* Inputs + selects */
.container-2 > form > input,
.signupForm select{
    width: 100%;
    height: 50px;
    padding: 10px 12px;

    background-color: var(--field);
    color: #1e1e1e;

    border: 0;
    border-radius: var(--radius-md);

    font-size: 16px;
    outline: none;
}

.container-2 > form > input:focus,
.signupForm select:focus{
    outline: 3px solid rgba(219, 19, 61, 0.25);
}

/* Button row */
.buttons{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.buttons > button{
    border: 0;
    background-color: transparent;

    font-weight: 600;
    font-size: 15px;
    cursor: pointer;

    padding: 10px 14px;
    border-radius: 12px;

    transition: transform 0.1s ease, opacity 0.2s ease, color 0.2s ease;
}

.buttons > button:hover{
    color: var(--red);
    opacity: 0.95;
}

.buttons > button:active{
    transform: scale(0.98);
}

/* Switch to login */
.switch-auth{
    width: 100%;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: 14px;
    font-size: 13.5px;
    color: rgba(0,0,0,0.75);
}

.switch-auth a{
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
}

.switch-auth a:hover{
    text-decoration: underline;
}

/* ----------------------------------------------------------------------------- */
/* RESPONSIVE */
@media (max-width: 520px){
    .container-1{
        position: static;
        margin-bottom: 14px;
    }

    .container-1 > img{ width: 64px; }
    .container-1 > p{
        font-size: 18px;
        letter-spacing: 3px;
    }

    .container-2{
        border-radius: 22px;
        padding: 16px;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* ----------------------------------------------------------------------------- */
/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce){
    .buttons > button{
        transition: none;
    }
}

/* Discreet demo note (collapsed) */
.demo-tag{
    font-size: 12px;
    font-weight: 600;
    color: rgba(0,0,0,0.55);
    margin-left: 6px;
}

.demo-note{
    width: 100%;
    text-align: left;
    margin-top: 6px;
    font-size: 12.5px;
    color: rgba(0,0,0,0.6);
}

.demo-note summary{
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: rgba(0,0,0,0.55);
    user-select: none;
}

.demo-note summary::-webkit-details-marker{
    display: none;
}

.demo-note summary::before{
    content: "ⓘ";
    margin-right: 8px;
    font-weight: 700;
}

.demo-note[open]{
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    color: rgba(0,0,0,0.7);
}
