/* vlipa studio — signing in and signing up. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:      #ffffff;
  --tint:    #f5f4fc;
  --text:    #101014;
  --muted:   #62626f;
  --faint:   #9a9aa6;
  --line:    #e6e5ef;
  --line-2:  #d7d5ea;
  --brand:   #3532f6;
  --danger:  #c8372d;
  --ok:      #17845a;
  --ease:    cubic-bezier(.22, .78, .28, 1);
}

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(60% 50% at 50% -10%, rgba(107, 77, 255, .1), transparent 70%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
p { margin: 0; }
a { color: var(--brand); }

.authbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px clamp(18px, 5vw, 34px);
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
}

.mark img { width: 22px; height: 22px; border-radius: 7px; }
.authbar a:last-child { color: var(--muted); font-size: 14px; text-decoration: none; }
.authbar a:last-child:hover { color: var(--brand); }

.shell { display: grid; place-items: start center; padding: clamp(16px, 5vw, 48px) 20px 80px; }

.card {
  width: 100%;
  max-width: 430px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 70px -52px rgba(12, 11, 40, .8);
}

.card > .note { margin: 10px 0 24px; color: var(--muted); font-size: 14.5px; }

.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { color: var(--faint); font-size: 12.5px; font-weight: 400; }

input, select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(53, 50, 246, .12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), opacity .2s var(--ease);
}

.btn:hover { background: #2320c9; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn--block { width: 100%; }
.btn--ghost { background: #fff; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--tint); border-color: var(--brand); color: var(--brand); }

.alt { margin: 4px 0 22px; }

.gbtn {
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
}

.alt__or {
  display: block;
  position: relative;
  margin-top: 22px;
  color: var(--faint);
  font-size: 12.5px;
  text-align: center;
}

.alt__or::before,
.alt__or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 68px);
  height: 1px;
  background: var(--line);
}

.alt__or::before { left: 0; }
.alt__or::after { right: 0; }

.captcha { display: grid; grid-template-columns: 140px 40px 1fr; gap: 10px; align-items: center; }
.captcha__img { display: grid; place-items: center; height: 46px; border-radius: 12px; overflow: hidden; background: var(--tint); }

.captcha__new {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.captcha__new svg { width: 17px; height: 17px; color: var(--muted); }
.captcha__new:hover { border-color: var(--brand); }
.captcha__new:hover svg { color: var(--brand); }

.switch { margin-top: 20px; text-align: center; color: var(--muted); font-size: 14.5px; }
.error { color: var(--danger); font-size: 13.5px; }
.ok { color: var(--ok); font-size: 13.5px; }

.strength { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.strength i { display: block; height: 4px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.strength i::after { content: ''; position: absolute; inset: 0 100% 0 0; background: var(--brand); transition: inset .3s var(--ease), background .3s var(--ease); }
.strength[data-score='1'] i::after { inset: 0 75% 0 0; background: #d8503f; }
.strength[data-score='2'] i::after { inset: 0 50% 0 0; background: #d99a2b; }
.strength[data-score='3'] i::after { inset: 0 25% 0 0; background: #3f9d61; }
.strength[data-score='4'] i::after { inset: 0 0 0 0; background: var(--ok); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
