:root {
  --text: #f2f6f4;
  --text-soft: #c8d0cc;
  --muted: #7f8b85;
  --muted-strong: #9ca6a1;
  --accent: #6ff3be;
  --line: rgba(236, 255, 246, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background-color: #090909;
  background-image:
    linear-gradient(rgba(9, 9, 9, 0.55), rgba(9, 9, 9, 0.55)),
    url("/assets/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: Inter, "SF Pro Display", "Segoe UI", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(111, 243, 190, 0.7);
  outline-offset: 2px;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  padding: 32px 0;
  place-items: center;
}

.auth-card {
  position: relative;
  width: min(464px, calc(100% - 32px));
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(18, 20, 19, 0.84);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
}

.auth-brand {
  display: flex;
  align-items: center;
  margin-bottom: 52px;
}

.brand-name {
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand-name small {
  margin-left: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-version {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.vip-corner {
  position: absolute;
  top: -1.05em;
  right: -1.75em;
  color: #ff5a36;
  font-size: 8px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.auth-copy {
  margin-bottom: 34px;
}

h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.field-label {
  display: block;
  margin: 0 0 10px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.password-wrap {
  position: relative;
}

input[type="password"],
input[type="text"] {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.026);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #56605b;
}

input:focus {
  border-color: rgba(111, 243, 190, 0.48);
  background: rgba(255, 255, 255, 0.042);
  box-shadow: 0 0 0 3px rgba(111, 243, 190, 0.07);
}

.icon-button,
.primary-button {
  border: 0;
  outline: none;
  cursor: pointer;
}

.icon-button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  transform: translateY(-50%);
}

.icon-button:hover {
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.05);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.primary-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  padding: 0 18px 0 20px;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  color: #07110c;
  background: linear-gradient(135deg, var(--accent), #61dfa9);
  box-shadow: 0 10px 24px rgba(75, 222, 164, 0.13);
  font-size: 14px;
  font-weight: 700;
}

.primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #85f7ca, #66e5ae);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.primary-button svg {
  width: 20px;
  height: 20px;
}

.form-error {
  min-height: 18px;
  margin: 12px 0 0;
  color: #ffa0a6;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 520px) {
  .auth-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

  .auth-brand {
    margin-bottom: 45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
