
.registration-body{
    min-height:100vh;
    padding:40px 20px;
    box-sizing:border-box;
}
.registration-shell{
    width:100%;
    max-width:900px;
    margin:auto;
}
.registration-card,.onboarding-card{
    background:#fff;
    border:1px solid rgba(0,0,0,.06);
    border-radius:28px;
    padding:38px 42px;
    box-shadow:0 25px 70px rgba(0,0,0,.08);
}
.registration-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:24px;
    margin:32px 0 24px;
}
.registration-head h1,.onboarding-card h1{
    margin:5px 0 8px;
    font-size:36px;
    letter-spacing:-.04em;
}
.registration-head p{margin:0;color:#6e6e73}
.registration-step{
    font-size:11px;
    font-weight:800;
    color:#007aff;
    letter-spacing:.08em;
}
.back-login{color:#007aff;text-decoration:none;font-weight:700;white-space:nowrap}
.registration-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.registration-grid .span-2{grid-column:span 2}
.registration-grid .field small{
    display:block;
    color:#8e8e93;
    margin-top:4px;
    line-height:1.4;
}
.trial-note{
    margin:20px 0;
    padding:14px 16px;
    border-radius:14px;
    background:#f5f9ff;
    border:1px solid #dcecff;
}
.trial-note strong,.trial-note span{display:block}
.trial-note strong{color:#1768bd;margin-bottom:3px}
.trial-note span{font-size:12px;color:#6e6e73}
.onboarding-body{padding:40px 20px}
.onboarding-wrap{max-width:850px;margin:auto}
.onboarding-card .auth-logo-row{margin-bottom:28px}
.onboarding-card>p{margin-bottom:24px}
.onboarding-section{
    border-top:1px solid #ececef;
    padding-top:22px;
    margin-top:22px;
    margin-bottom:22px;
}
.onboarding-section h2{font-size:17px;margin:0 0 15px}
@media(max-width:650px){
    .registration-card,.onboarding-card{padding:26px 20px;border-radius:22px}
    .registration-head{flex-direction:column}
    .registration-head h1,.onboarding-card h1{font-size:30px}
    .registration-grid{grid-template-columns:1fr}
    .registration-grid .span-2{grid-column:auto}
}

.public-language-switch{
    display:flex;justify-content:flex-end;gap:6px;margin-bottom:12px
}
.public-language-switch a,.language-toggle a{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:34px;height:28px;border-radius:999px;text-decoration:none;
    font-size:11px;font-weight:800;color:#6e6e73;border:1px solid #dedee2;background:#fff
}
.public-language-switch a.active,.language-toggle a.active{
    color:#fff;background:#1d1d1f;border-color:#1d1d1f
}


/* Login / auth card */
.auth-body{
    min-height:100vh;
    margin:0;
    padding:36px 20px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f5f5f7;
    color:#1d1d1f;
}

.auth-card{
    width:100%;
    max-width:470px;
    box-sizing:border-box;
    padding:34px 36px;
    background:#fff;
    border:1px solid rgba(0,0,0,.06);
    border-radius:28px;
    box-shadow:0 24px 70px rgba(0,0,0,.08);
}

.auth-logo-row{
    display:flex;
    align-items:center;
    gap:14px;
}

.auth-logo-row .brand-mark.large{
    width:58px;
    height:58px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    font-size:22px;
    font-weight:800;
    color:#fff;
    background:linear-gradient(135deg,#178bff,#5652e8);
    box-shadow:0 12px 28px rgba(0,122,255,.18);
}

.auth-logo-row strong,
.auth-logo-row span{
    display:block;
}

.auth-logo-row strong{
    font-size:18px;
    line-height:1.2;
}

.auth-logo-row span{
    margin-top:4px;
    color:#6e6e73;
    font-size:13px;
}

.auth-copy{
    margin:34px 0 24px;
}

.auth-copy h1{
    margin:0 0 8px;
    font-size:36px;
    line-height:1.05;
    letter-spacing:-.04em;
}

.auth-copy p{
    margin:0;
    color:#6e6e73;
    font-size:15px;
    line-height:1.5;
}

.auth-form{
    display:grid;
    gap:16px;
}

.auth-form label{
    display:block;
}

.auth-form label > span{
    display:block;
    margin-bottom:7px;
    color:#3a3a3c;
    font-size:13px;
    font-weight:650;
}

.auth-form input{
    width:100%;
    height:46px;
    box-sizing:border-box;
    padding:0 14px;
    border:1px solid #dedee3;
    border-radius:12px;
    background:#fff;
    color:#1d1d1f;
    font:inherit;
    font-size:15px;
    outline:none;
    appearance:none;
    -webkit-appearance:none;
    transition:border-color .15s ease, box-shadow .15s ease;
}

.auth-form input:hover{
    border-color:#c8c8ce;
}

.auth-form input:focus{
    border-color:#79aff6;
    box-shadow:0 0 0 3px rgba(0,122,255,.10);
}

.auth-card .primary-button{
    width:100%;
    min-height:48px;
    margin-top:2px;
    border:0;
    border-radius:13px;
    background:#007aff;
    color:#fff;
    font:inherit;
    font-size:15px;
    font-weight:750;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(0,122,255,.18);
}

.auth-card .primary-button:hover{
    background:#0874df;
}

.auth-card .alert{
    margin:0 0 18px;
    padding:12px 14px;
    border-radius:12px;
    font-size:13px;
    line-height:1.45;
}

.auth-card .alert.error{
    border:1px solid #ffd2ce;
    background:#fff1f0;
    color:#a63d36;
}

.setup-hint{
    margin-top:22px;
    text-align:center;
    color:#6e6e73;
    font-size:13px;
}

.setup-hint a{
    color:#007aff;
    text-decoration:none;
    font-weight:650;
}

.setup-hint a:hover{
    text-decoration:underline;
}

.auth-card .public-language-switch{
    margin:-4px 0 16px;
}

@media(max-width:560px){
    .auth-body{
        padding:18px 14px;
        align-items:flex-start;
    }

    .auth-card{
        margin-top:16px;
        padding:26px 22px;
        border-radius:22px;
    }

    .auth-copy{
        margin-top:28px;
    }

    .auth-copy h1{
        font-size:31px;
    }
}
