/* ============ ПАНЕЛЬ ============ */
.panel{
position:relative;
width:100%;
max-width:428px;
padding:34px 32px 28px;
background:linear-gradient(180deg,#ffffff 0%,#fdfdfd 100%);
border:1px solid rgba(0,0,0,.07);
border-radius:var(--radius);
box-shadow:
  0 1px 0 rgba(255,255,255,.9) inset,
  0 2px 6px -1px rgba(0,0,0,.05),
  0 24px 48px -18px rgba(0,0,0,.10),
  0 48px 90px -40px rgba(0,0,0,.12);
animation:cardIn .7s cubic-bezier(.16,.84,.44,1) both;
}

.panel::before{
content:"";
position:absolute;
top:-1px;left:34px;right:34px;
height:2px;
border-radius:2px;
background:linear-gradient(90deg,transparent,var(--brand),var(--cyan),var(--violet),transparent);
opacity:.85;
}

@keyframes cardIn{
from{opacity:0;transform:translateY(18px) scale(.985);}
to{opacity:1;transform:none;}
}

/* ============ ШАПКА ПАНЕЛИ ============ */
.panel__head{
display:flex;
align-items:center;
justify-content:space-between;
gap:14px;
padding-bottom:22px;
}

.brand{
display:inline-flex;
align-items:center;
gap:11px;
text-decoration:none;
color:inherit;
}

.brand__mark{
display:grid;
place-items:center;
width:40px;height:40px;
border-radius:13px;
background:linear-gradient(140deg,#9ca3af,#6b7280 45%,#d1d5db);
box-shadow:
  0 8px 18px -8px rgba(0,0,0,.35),
  0 0 0 1px rgba(255,255,255,.35) inset;
}

.brand__mark svg{display:block;}

.brand__text{display:flex;flex-direction:column;line-height:1;}

.brand__name{font-size:14px;font-weight:700;letter-spacing:.14em;}

.brand__sub{
margin-top:4px;
font-family:var(--mono);
font-size:9.5px;
letter-spacing:.22em;
color:var(--muted);
text-transform:uppercase;
}

.status{
display:inline-flex;
align-items:center;
gap:7px;
padding:6px 10px;
border-radius:999px;
background:rgba(107,114,128,.08);
border:1px solid rgba(107,114,128,.25);
font-family:var(--mono);
font-size:9.5px;
letter-spacing:.14em;
text-transform:uppercase;
color:#4b5563;
white-space:nowrap;
}

.status__dot{
width:6px;height:6px;
border-radius:50%;
background:#06b6d4;
box-shadow:0 0 0 0 rgba(6,182,212,.6);
animation:pulse 2.2s ease-out infinite;
}

@keyframes pulse{
0%{box-shadow:0 0 0 0 rgba(107,114,128,.55);}
70%{box-shadow:0 0 0 7px rgba(107,114,128,0);}
100%{box-shadow:0 0 0 0 rgba(107,114,128,0);}
}

/* ============ ЗАГОЛОВОК ============ */
.panel__title{
margin:0 0 8px;
font-size:25px;
font-weight:700;
letter-spacing:-.02em;
}

.panel__subtitle{
margin:0 0 26px;
font-size:14px;
line-height:1.55;
color:var(--muted);
}

/* ============ ПОЛЯ ============ */
.form{display:flex;flex-direction:column;gap:17px;}

.field{display:block;}

.field__label{
display:block;
margin-bottom:8px;
font-family:var(--mono);
font-size:10px;
font-weight:600;
letter-spacing:.16em;
text-transform:uppercase;
color:var(--muted);
}

.control{
display:flex;
align-items:center;
gap:10px;
padding:0 14px;
background:var(--field);
border:1px solid var(--line);
border-radius:14px;
transition:background .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.control:focus-within{
background:#fff;
border-color:rgba(107,114,128,.55);
box-shadow:0 0 0 4px rgba(107,114,128,.13);
}

.control__icon{
flex:none;
color:#9ca3af;
transition:color .22s ease;
}

.control:focus-within .control__icon{color:var(--brand);}

.control input{
flex:1;
min-width:0;
height:50px;
border:0;
outline:0;
background:transparent;
font:inherit;
font-size:14.5px;
color:var(--ink);
}
.control input::placeholder{color:#9c9ca3;}

.control input:-webkit-autofill{
-webkit-text-fill-color:var(--ink);
box-shadow:0 0 0 40px var(--field) inset;
}

.toggle{
flex:none;display:grid;place-items:center;
width:30px;height:30px;margin-right:-4px;padding:0;
border:0;border-radius:9px;background:transparent;
color:#9ca3af;cursor:pointer;
transition:color .2s ease,background .2s ease;
}
.toggle:hover{color:var(--brand);background:rgba(107,114,128,.09);}
.toggle svg{display:block;}
.toggle .eye-off{display:none;}
.toggle.is-visible .eye-on{display:none;}
.toggle.is-visible .eye-off{display:block;}

/* ============ СТРОКА ОПЦИЙ ============ */
.options{
display:flex;
align-items:center;
justify-content:space-between;
gap:12px;
margin-top:2px;
font-size:13px;
}

.check{
position:relative;
display:inline-flex;
align-items:center;
gap:9px;
color:var(--ink-soft);
cursor:pointer;
user-select:none;
}

.check input{
position:absolute;
width:1px;height:1px;
opacity:0;
}

.check__box{
position:relative;
width:17px;height:17px;
border-radius:5px;
border:1.5px solid #c9c9ce;
background:#fff;
transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.check__box::after{
content:"";
position:absolute;
top:3px;left:5.5px;
width:4px;height:8px;
border:solid #fff;
border-width:0 2px 2px 0;
transform:rotate(45deg) scale(.4);
opacity:0;
transition:opacity .16s ease,transform .16s ease;
}

.check input:checked + .check__box{
background:linear-gradient(140deg,var(--brand),var(--cyan));
border-color:transparent;
box-shadow:0 4px 10px -4px rgba(0,0,0,.25);
}

.check input:checked + .check__box::after{
opacity:1;
transform:rotate(45deg) scale(1);
}

.check input:focus-visible + .check__box{
box-shadow:0 0 0 4px rgba(107,114,128,.18);
}

.link{
color:var(--brand-deep);
text-decoration:none;
font-weight:500;
transition:color .2s ease;
}

.link:hover{color:#111111;text-decoration:underline;text-underline-offset:3px;}

/* ============ КНОПКА ============ */
.btn-primary{
position:relative;
overflow:hidden;
width:100%;
height:52px;
margin-top:6px;
border:0;
border-radius:14px;
font:inherit;
font-size:15px;
font-weight:600;
letter-spacing:.01em;
color:#fff;
cursor:pointer;
background:linear-gradient(120deg,var(--brand) 0%,var(--brand-deep) 45%,var(--cyan) 100%);
background-size:180% 180%;
background-position:0% 50%;
box-shadow:
  0 12px 26px -10px rgba(0,0,0,.25),
  0 1px 0 rgba(255,255,255,.35) inset;
transition:transform .2s ease,box-shadow .28s ease,background-position .45s ease;
}

.btn-primary::after{
content:"";
position:absolute;
top:0;left:-60%;
width:45%;height:100%;
background:linear-gradient(100deg,transparent,rgba(255,255,255,.42),transparent);
transform:skewX(-18deg);
transition:left .55s ease;
}

.btn-primary:hover{
transform:translateY(-1.5px);
background-position:100% 50%;
box-shadow:
  0 18px 34px -12px rgba(0,0,0,.30),
  0 1px 0 rgba(255,255,255,.4) inset;
}

.btn-primary:hover::after{left:120%;}

.btn-primary:active{transform:translateY(0) scale(.995);}

.btn-primary:focus-visible{
outline:none;
box-shadow:
  0 0 0 4px rgba(107,114,128,.25),
  0 12px 26px -10px rgba(0,0,0,.25);
}

/* ============ РАЗДЕЛИТЕЛЬ ============ */
.divider{
display:flex;
align-items:center;
gap:14px;
margin:22px 0 18px;
font-family:var(--mono);
font-size:10px;
letter-spacing:.18em;
text-transform:uppercase;
color:#9ca3af;
}

.divider::before,
.divider::after{
content:"";
flex:1;
height:1px;
background:linear-gradient(90deg,transparent,var(--line),transparent);
}

/* ============ СОЦКНОПКИ ============ */
.socials{
display:grid;
grid-template-columns:1fr 1fr;
gap:12px;
}

.btn-ghost{
display:inline-flex;
align-items:center;
justify-content:center;
gap:9px;
height:46px;
padding:0 14px;
border:1px solid var(--line);
border-radius:13px;
background:#fff;
font:inherit;
font-size:13.5px;
font-weight:500;
color:var(--ink-soft);
cursor:pointer;
transition:border-color .22s ease,background .22s ease,transform .18s ease,box-shadow .22s ease;
}

.btn-ghost:hover{
transform:translateY(-1px);
border-color:rgba(107,114,128,.35);
background:#fafafa;
box-shadow:0 8px 18px -12px rgba(0,0,0,.12);
}

.btn-ghost:active{transform:translateY(0);}

.btn-ghost:focus-visible{
outline:none;
box-shadow:0 0 0 4px rgba(107,114,128,.16);
}

/* ============ ПОДВАЛ ============ */
.panel__foot{
display:flex;
align-items:center;
justify-content:center;
gap:7px;
margin-top:24px;
padding-top:18px;
border-top:1px solid var(--line);
font-family:var(--mono);
font-size:10px;
letter-spacing:.1em;
color:#9ca3af;
text-align:center;
}

.panel__foot svg{flex:none;opacity:.7;}

.panel__foot a{color:var(--muted);text-decoration:none;}
.panel__foot a:hover{color:var(--brand-deep);}

/* ============ АДАПТИВ ============ */
@media (max-width:420px){
.panel{padding:28px 22px 24px;border-radius:18px;}
.panel__title{font-size:22px;}
.panel::before{left:22px;right:22px;}
.socials{grid-template-columns:1fr;}
.status{display:none;}
}

@media (prefers-reduced-motion:reduce){
*,*::before,*::after{
  animation-duration:.001ms !important;
  animation-iteration-count:1 !important;
  transition-duration:.001ms !important;
}
}
