:root{
--bg: #f7f8fc;
--text: #0f1222;
--muted: #6b7280;
--primary: #6a5ae0;
--primary-700:#5848d6;
--ring: 0 0 0 4px rgba(106,90,224,.15);
--card: #ffffff;
--panel: #f4f5ff;
--input:#f4f5fb;
--border:#e7e8ef;
--success:#26d07c;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
margin:0;
font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji", "Segoe UI Symbol";
color: var(--text);
background: var(--bg);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.page{
min-height:100dvh;
display:grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: stretch;
}

/* Left column */
.auth-wrap{
    display:flex;
    align-items:center;
    justify-content:center;
    padding: clamp(24px, 4vw, 48px);
}
.auth-card{
width:100%;
max-width: 460px;
}
h1{
margin: 0 0 6px;
font-size: clamp(26px, 3.2vw, 30px);
line-height: 1.2;
font-weight: 700;
letter-spacing: -0.02em;
text-align:center;
}
.subtitle{
text-align:center;
color: var(--muted);
margin-bottom: 28px;
font-size: 14.5px;
}

.field{
display:flex;
align-items:center;
background: var(--card);
border: 1px solid var(--border);
border-radius: 12px;
padding: 12px 14px;
gap: 10px;
transition: box-shadow .2s, border-color .2s, background .2s;
}
.field + .field{ margin-top: 14px; }
.field:focus-within{
border-color: var(--primary);
box-shadow: var(--ring);
background:#fff;
}
.icon{
width:18px; height:18px; flex: 0 0 18px;
color:#9aa1b3;
}
input{
border: none;
outline: none;
background: transparent;
font-size: 15px;
width:100%;
color: var(--text);
}
input::placeholder{ color:#9aa1b3; }

.eye{
width:18px; height:18px; opacity:.65;
}

.actions{
margin-top: 18px;
}
.btn{
width:100%;
appearance:none;
border:none;
padding: 13px 18px;
font-weight:600;
font-size:15px;
color:white;
background: var(--primary);
border-radius: 12px;
cursor: pointer;
transition: transform .02s ease, background .2s ease, box-shadow .2s;
box-shadow: 0 8px 20px rgba(106,90,224,.25);
}
.btn:active{ transform: translateY(1px); }
.btn:hover{ background: var(--primary-700); }
.btn:focus-visible{ outline: none; box-shadow: var(--ring); }

.help{
margin-top: 14px;
text-align:center;
}
.help a{
color: var(--primary);
text-decoration: none;
font-size: 13px;
}
.help a:hover{ text-decoration: underline; }

/* Right column – feature panel */
.panel{
    position: relative;
    padding: clamp(28px, 4vw, 48px);
    display:flex;
    align-items:center;
    justify-content:center;
}
.panel-inner{
    width: min(720px, 90%);
    background: radial-gradient(1000px 600px at 70% 20%, #f1f2ff 0%, #f7f7ff 40%, #fafbff 65%, #ffffff 100%);
    border-radius: 18px;
    border: 1px solid #eef0ff;
    box-shadow: 0 20px 60px rgba(24,18,80,.08);
    padding: clamp(28px, 5vw, 56px);
}

.panel-head{
    text-align:center;
    margin-bottom: clamp(18px, 3.5vw, 28px);
}
.panel-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:56px; height:56px;
    border-radius: 16px;
    background: linear-gradient(180deg, #6b63ed 0%, #7a6df2 100%);
    color: white;
    box-shadow: 0 12px 32px rgba(106,90,224,.35);
    position: relative;
}
.panel-badge .spark{
    position:absolute;
    right:-6px; top:-6px;
    width:22px; height:22px;
    background:#fff;
    border-radius: 50%;
    display:grid; place-items:center;
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.panel-title{
    margin: 14px 0 4px;
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 22px);
    letter-spacing: -0.01em;
}
.panel-sub{
    max-width: 560px;
    margin: 6px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.features{
    margin-top: clamp(18px, 3vw, 28px);
    display: grid;
    gap: 18px;
}
.feature{
    display:grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
}
.f-ico{
    width:44px; height:44px; border-radius: 12px;
    background: #efeefd;
    display:grid; place-items:center;
    color: var(--primary);
}
.feature h3{
    margin: 2px 0 6px;
    font-size: 15px;
    font-weight: 600;
}
.feature p{
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
}

/* Responsive */
@media (max-width: 980px){
.page{ grid-template-columns: 1fr; }
.panel{ order:-1; }
.panel-inner{ width:100%; }
}