:root{
    --auth-primary:#2563eb;
    --auth-primary-dark:#1d4ed8;
    --auth-secondary:#0f172a;
    --auth-muted:#64748b;
    --auth-border:#dbe3ee;
    --auth-bg:#eef3f9;
    --auth-success:#166534;
    --auth-danger:#b91c1c;
}

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
}

body{
    min-height:100vh;
    margin:0;
    color:var(--auth-secondary);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

button,
input,
select{
    font:inherit;
}

a{
    color:var(--auth-primary);
}

.smart-auth-page,
.smart-login-page,
.smart-plans-page{
    background:
        radial-gradient(
            circle at top left,
            rgba(37,99,235,.14),
            transparent 32%
        ),
        var(--auth-bg);
}

.smart-auth-shell{
    display:grid;
    grid-template-columns:minmax(360px,.9fr) minmax(560px,1.1fr);
    width:min(1240px,calc(100% - 34px));
    min-height:calc(100vh - 34px);
    margin:17px auto;
    overflow:hidden;
    border:1px solid rgba(219,227,238,.9);
    border-radius:25px;
    background:#fff;
    box-shadow:0 24px 70px rgba(15,23,42,.11);
}

.smart-auth-benefits{
    display:flex;
    padding:42px;
    flex-direction:column;
    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,.98),
            rgba(30,58,138,.96)
        );
    color:#fff;
}

.smart-brand{
    display:flex;
    gap:11px;
    align-items:center;
    color:inherit;
    text-decoration:none;
}

.smart-brand > span{
    display:flex;
    width:44px;
    height:44px;
    align-items:center;
    justify-content:center;
    border-radius:13px;
    background:var(--auth-primary);
    color:#fff;
    font-size:20px;
    font-weight:900;
    box-shadow:0 9px 25px rgba(37,99,235,.3);
}

.smart-brand div{
    display:flex;
    min-width:0;
    flex-direction:column;
}

.smart-brand strong{
    font-size:18px;
}

.smart-brand small{
    color:#94a3b8;
    font-size:11px;
}

.smart-auth-copy{
    margin-top:75px;
}

.smart-auth-eyebrow,
.smart-auth-form-header span,
.smart-login-heading > span,
.smart-plans-hero > span,
.smart-demo-card > span,
.smart-paid-plan > span{
    color:#93c5fd;
    font-size:11px;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.smart-auth-copy h1{
    max-width:560px;
    margin:10px 0 15px;
    font-size:clamp(34px,4vw,56px);
    line-height:1.02;
}

.smart-auth-copy p{
    max-width:550px;
    margin:0;
    color:#cbd5e1;
    font-size:16px;
    line-height:1.7;
}

.smart-benefit-list{
    display:grid;
    gap:11px;
    margin-top:36px;
}

.smart-benefit-list article{
    padding:14px 15px;
    border:1px solid rgba(148,163,184,.18);
    border-radius:13px;
    background:rgba(255,255,255,.06);
}

.smart-benefit-list strong{
    display:block;
    margin-bottom:4px;
}

.smart-benefit-list span{
    color:#cbd5e1;
    font-size:12px;
}

.smart-demo-summary,
.smart-plan-summary{
    display:flex;
    gap:5px;
    margin-top:auto;
    padding:16px;
    flex-direction:column;
    border:1px solid rgba(147,197,253,.25);
    border-radius:14px;
    background:rgba(37,99,235,.16);
}

.smart-demo-summary span,
.smart-plan-summary span{
    color:#93c5fd;
    font-size:10px;
    font-weight:850;
    text-transform:uppercase;
}

.smart-demo-summary small,
.smart-plan-summary small{
    color:#cbd5e1;
}

.smart-auth-form-panel{
    padding:42px clamp(28px,5vw,65px);
}

.smart-auth-form-header{
    display:flex;
    gap:18px;
    align-items:flex-start;
    justify-content:space-between;
    margin-bottom:24px;
}

.smart-auth-form-header h2{
    margin:5px 0 0;
    font-size:30px;
}

.smart-auth-form-header > a{
    flex:0 0 auto;
    font-size:12px;
    font-weight:750;
}

.google-register-button{
    display:grid;
    grid-template-columns:30px minmax(0,1fr) auto;
    gap:9px;
    min-height:48px;
    padding:8px 12px;
    align-items:center;
    border:1px solid var(--auth-border);
    border-radius:11px;
    background:#fff;
    color:#334155;
    font-weight:750;
    text-decoration:none;
}

.google-register-button:hover{
    border-color:#93c5fd;
    background:#f8fbff;
}

.google-letter{
    display:flex;
    width:28px;
    height:28px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#fff;
    color:#4285f4;
    font-size:18px;
    font-weight:900;
    box-shadow:0 2px 8px rgba(15,23,42,.12);
}

.google-register-button small{
    padding:4px 7px;
    border-radius:999px;
    background:#f1f5f9;
    color:#64748b;
    font-size:9px;
    text-transform:uppercase;
}

.smart-divider{
    display:flex;
    gap:12px;
    align-items:center;
    margin:18px 0;
    color:#94a3b8;
    font-size:11px;
}

.smart-divider::before,
.smart-divider::after{
    content:"";
    flex:1;
    height:1px;
    background:var(--auth-border);
}

.smart-form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px;
}

.smart-span-2{
    grid-column:span 2;
}

.smart-field label{
    display:block;
    margin-bottom:7px;
    color:#334155;
    font-size:12px;
    font-weight:800;
}

.smart-field input,
.smart-field select{
    width:100%;
    min-height:45px;
    padding:10px 12px;
    border:1px solid var(--auth-border);
    border-radius:10px;
    outline:none;
    background:#fff;
    color:#0f172a;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.smart-field input:focus,
.smart-field select:focus{
    border-color:var(--auth-primary);
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
}

.smart-field input.is-invalid{
    border-color:#ef4444;
    box-shadow:0 0 0 3px rgba(239,68,68,.08);
}

.smart-field input.is-valid{
    border-color:#22c55e;
}

.smart-password-control{
    position:relative;
}

.smart-password-control input{
    padding-right:76px;
}

.smart-password-control button{
    position:absolute;
    top:50%;
    right:8px;
    min-height:30px;
    padding:5px 8px;
    transform:translateY(-50%);
    border:0;
    border-radius:7px;
    background:#f1f5f9;
    color:#475569;
    cursor:pointer;
    font-size:10px;
    font-weight:800;
}

.password-strength{
    height:6px;
    margin-top:7px;
    overflow:hidden;
    border-radius:999px;
    background:#e2e8f0;
}

.password-strength span{
    display:block;
    width:0;
    height:100%;
    border-radius:inherit;
    background:#ef4444;
    transition:
        width .2s ease,
        background .2s ease;
}

.smart-field small{
    display:block;
    margin-top:6px;
    color:#64748b;
    font-size:10px;
}

.smart-field small.match-ok{
    color:var(--auth-success);
}

.smart-field small.match-error{
    color:var(--auth-danger);
}

.smart-terms{
    display:flex;
    gap:9px;
    align-items:flex-start;
    margin:19px 0;
    color:#64748b;
    font-size:11px;
    line-height:1.5;
}

.smart-terms input{
    margin-top:2px;
}

.smart-submit-button{
    width:100%;
    min-height:48px;
    padding:11px 16px;
    border:0;
    border-radius:11px;
    background:linear-gradient(
        135deg,
        var(--auth-primary),
        var(--auth-primary-dark)
    );
    color:#fff;
    cursor:pointer;
    font-weight:850;
    box-shadow:0 12px 25px rgba(37,99,235,.22);
}

.smart-submit-button:disabled{
    opacity:.65;
    cursor:not-allowed;
}

.smart-security-note{
    margin:12px 0 0;
    color:#94a3b8;
    font-size:10px;
    text-align:center;
}

.smart-switch-flow{
    margin-top:21px;
    padding-top:17px;
    border-top:1px solid var(--auth-border);
    color:#64748b;
    font-size:12px;
    text-align:center;
}

.smart-alert{
    margin-bottom:16px;
    padding:12px 14px;
    border-radius:10px;
    font-size:12px;
    line-height:1.5;
}

.smart-alert.error{
    border:1px solid #fecaca;
    background:#fff1f2;
    color:#991b1b;
}

.smart-alert.success{
    border:1px solid #bbf7d0;
    background:#f0fdf4;
    color:#166534;
}

.smart-plans-header{
    display:flex;
    width:min(1180px,calc(100% - 30px));
    margin:0 auto;
    padding:20px 0;
    align-items:center;
    justify-content:space-between;
}

.smart-plans-header .smart-brand{
    color:#0f172a;
}

.smart-login-link{
    padding:9px 13px;
    border:1px solid var(--auth-border);
    border-radius:9px;
    background:#fff;
    font-size:12px;
    font-weight:800;
    text-decoration:none;
}

.smart-plans-main{
    width:min(1180px,calc(100% - 30px));
    margin:25px auto 50px;
}

.smart-plans-hero{
    max-width:760px;
    margin:0 auto 34px;
    text-align:center;
}

.smart-plans-hero > span{
    color:var(--auth-primary);
}

.smart-plans-hero h1{
    margin:8px 0 12px;
    font-size:clamp(34px,5vw,57px);
    line-height:1.05;
}

.smart-plans-hero p{
    margin:0;
    color:var(--auth-muted);
    font-size:16px;
    line-height:1.6;
}

.smart-entry-options{
    display:grid;
    grid-template-columns:310px minmax(0,1fr);
    gap:16px;
    align-items:stretch;
}

.smart-demo-card,
.smart-paid-plan{
    position:relative;
    padding:22px;
    border:1px solid var(--auth-border);
    border-radius:17px;
    background:#fff;
    box-shadow:0 12px 34px rgba(15,23,42,.055);
}

.smart-demo-card{
    border-top:5px solid #0f172a;
    background:#0f172a;
    color:#fff;
}

.smart-demo-card > span{
    color:#93c5fd;
}

.smart-demo-card h2{
    margin:8px 0 18px;
}

.smart-demo-card > strong{
    display:block;
    font-size:27px;
}

.smart-demo-card ul,
.smart-paid-plan ul{
    display:flex;
    gap:10px;
    margin:20px 0;
    padding:0;
    flex-direction:column;
    list-style:none;
}

.smart-demo-card li,
.smart-paid-plan li{
    padding-bottom:9px;
    border-bottom:1px solid rgba(148,163,184,.16);
    font-size:12px;
}

.smart-demo-button,
.smart-plan-button{
    display:flex;
    min-height:43px;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    font-size:12px;
    font-weight:850;
    text-decoration:none;
}

.smart-demo-button{
    background:#fff;
    color:#0f172a;
}

.smart-paid-plans{
    display:grid;
    grid-template-columns:repeat(
        auto-fit,
        minmax(215px,1fr)
    );
    gap:16px;
}

.smart-paid-plan.featured{
    border-color:#93c5fd;
    border-top:5px solid var(--auth-primary);
}

.smart-popular-badge{
    position:absolute;
    top:12px;
    right:12px;
    padding:5px 8px;
    border-radius:999px;
    background:#dbeafe;
    color:#1d4ed8!important;
    font-size:9px!important;
}

.smart-paid-plan > span{
    color:var(--auth-primary);
}

.smart-paid-plan h2{
    margin:8px 0 5px;
}

.smart-plan-price{
    display:flex;
    gap:4px;
    align-items:flex-end;
    margin:12px 0;
}

.smart-plan-price strong{
    font-size:30px;
    line-height:1;
}

.smart-plan-price small,
.smart-plan-price span{
    color:var(--auth-muted);
}

.smart-paid-plan p{
    min-height:42px;
    color:var(--auth-muted);
    font-size:12px;
    line-height:1.5;
}

.smart-plan-button{
    background:var(--auth-primary);
    color:#fff;
}

.smart-plans-footer{
    margin:25px 0 0;
    color:var(--auth-muted);
    font-size:11px;
    text-align:center;
}

.smart-login-shell{
    display:grid;
    min-height:100vh;
    padding:25px;
    place-items:center;
}

.smart-login-card{
    width:min(470px,100%);
    padding:34px;
    border:1px solid var(--auth-border);
    border-radius:20px;
    background:#fff;
    box-shadow:0 20px 55px rgba(15,23,42,.1);
}

.smart-login-card .smart-brand{
    color:#0f172a;
}

.smart-login-heading{
    margin:35px 0 22px;
}

.smart-login-heading > span{
    color:var(--auth-primary);
}

.smart-login-heading h1{
    margin:7px 0;
    font-size:31px;
}

.smart-login-heading p{
    margin:0;
    color:var(--auth-muted);
    line-height:1.55;
}

.smart-login-card form{
    display:flex;
    gap:14px;
    flex-direction:column;
}

.smart-login-actions{
    display:flex;
    gap:14px;
    justify-content:center;
    margin-top:20px;
    color:var(--auth-muted);
    font-size:11px;
}

@media(max-width:980px){
    .smart-auth-shell{
        grid-template-columns:1fr;
    }

    .smart-auth-benefits{
        min-height:auto;
    }

    .smart-auth-copy{
        margin-top:42px;
    }

    .smart-demo-summary,
    .smart-plan-summary{
        margin-top:30px;
    }

    .smart-entry-options{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .smart-auth-shell{
        width:100%;
        min-height:100vh;
        margin:0;
        border:0;
        border-radius:0;
    }

    .smart-auth-benefits{
        padding:27px 22px;
    }

    .smart-auth-copy{
        margin-top:35px;
    }

    .smart-auth-form-panel{
        padding:30px 20px;
    }

    .smart-auth-form-header{
        flex-direction:column;
    }

    .smart-form-grid{
        grid-template-columns:1fr;
    }

    .smart-span-2{
        grid-column:auto;
    }

    .smart-paid-plans{
        grid-template-columns:1fr;
    }

    .smart-login-card{
        padding:27px 21px;
    }

    .smart-login-actions{
        flex-direction:column;
        text-align:center;
    }
}

.google-profile-summary{
    display:flex;
    gap:12px;
    align-items:center;
    margin:28px 0 0;
    padding:13px;
    border:1px solid var(--auth-border);
    border-radius:12px;
    background:#f8fafc;
}
.google-profile-summary img{
    width:48px;
    height:48px;
    border-radius:50%;
    object-fit:cover;
}
.google-profile-summary div{
    display:flex;
    min-width:0;
    flex-direction:column;
}
.google-profile-summary small{
    margin-top:4px;
    overflow:hidden;
    color:var(--auth-muted);
    text-overflow:ellipsis;
}
.google-complete-card{
    width:min(520px,100%);
}
