.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.side { display: flex; flex-direction: column; justify-content: space-between; padding: 56px 64px; }
.side-copy { max-width: 520px; }
.side h1 { font: 800 clamp(44px, 5.4vw, 76px)/1.02 var(--fd); letter-spacing: -.035em; margin-bottom: 36px;
  animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.checks li:nth-child(1) { animation-delay: .15s; } .checks li:nth-child(2) { animation-delay: .25s; } .checks li:nth-child(3) { animation-delay: .35s; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #4ade80;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.copy { color: var(--muted); font-size: 13px; }

.panel { display: grid; place-items: center; padding: 100px 32px 48px; position: relative; }
.card { position: relative; width: min(440px, 100%); border-radius: 28px; background: linear-gradient(160deg, rgba(60,14,46,.72), rgba(36,8,30,.6)); padding: 30px 36px 32px; animation: pop .9s cubic-bezier(.2,.8,.2,1) both .1s; }
.peek { position: absolute; width: 84px; right: -30px; top: -112px; z-index: 3; }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: rgba(0,0,0,.22); margin-bottom: 26px; }
.tab { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); padding: 10px; font-weight: 700; cursor: pointer; transition: color .25s; }
.tab.on { color: #fff; }
.tab-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 10px;
  background: linear-gradient(100deg, var(--a), var(--b)); box-shadow: 0 8px 20px -8px var(--a); transition: transform .45s cubic-bezier(.6,-0.2,.3,1.3); }
.tabs.reg .tab-ind { transform: translateX(100%); }

.form { display: grid; gap: 16px; animation: fade .45s ease both; }
.form h2 { font: 700 30px/1.1 var(--fd); letter-spacing: -.02em; }
.sub { color: var(--muted); margin-top: -8px; font-size: 15px; }
.form label { display: grid; gap: 8px; }
.form label > span { font-size: 14px; font-weight: 700; }
.form input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #fff; outline: none; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.form input::placeholder { color: rgba(255,255,255,.45); }
.form input:focus { border-color: var(--b); background: rgba(255,255,255,.13); box-shadow: 0 0 0 4px color-mix(in srgb, var(--b) 25%, transparent); }
.form input.bad { border-color: #fb7185; box-shadow: 0 0 0 4px rgba(251,113,133,.2); }
.pw { position: relative; } .pw input { padding-right: 48px; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; color: #fff; opacity: .6; padding: 6px; display: grid; }
.eye:hover { opacity: 1; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: var(--muted); font-size: 12px; }
.full { width: 100%; margin-top: 6px; padding: 15px; }
.switch { text-align: center; color: var(--muted); font-size: 14px; }
.switch a, .link { color: var(--b); font-weight: 700; }
.switch a:hover, .link:hover { text-decoration: underline; }
.link { border: 0; background: none; cursor: pointer; justify-self: center; }
.small { font-size: 13px; }
.meter { height: 5px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: -4px; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #fb7185, var(--b), #4ade80); transition: width .35s; }
.alert { border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; border: 1px solid; animation: fade .3s ease both; }
.alert.err { background: rgba(251,113,133,.15); border-color: rgba(251,113,133,.45); color: #ffe4e6; }
.alert.ok { background: rgba(74,222,128,.14); border-color: rgba(74,222,128,.45); color: #dcfce7; }
.shake { animation: shake .45s; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }

@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .side { padding: 28px 24px 8px; gap: 28px; }
  .side h1 { font-size: 40px; margin-bottom: 20px; }
  .checks, .copy { display: none; }
  .panel { padding: 64px 18px 96px; place-items: start center; }
  .card { padding: 26px 22px; }
  .peek { width: 66px; right: -4px; top: -92px; }
  .row2 { grid-template-columns: 1fr; }
}

.form[hidden], .alert[hidden], .link[hidden] { display: none; }
.lang-top { position: absolute; top: 28px; right: 32px; z-index: 5; }
.side { padding-bottom: 84px; }
@media (max-width: 960px) { .lang-top { position: fixed; top: 24px; right: 18px; } .panel { padding-bottom: 80px; } }
