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

:root {
  --bg:            #07080F;
  --surface:       #0F1019;
  --surface-2:     #141620;
  --surface-3:     #1B1E2C;
  --primary:       #6366F1;
  --primary-light: #818CF8;
  --text:          #ECEEF8;
  --text-2:        #8B93A8;
  --text-3:        #505668;
  --error:         #F87171;
  --success:       #34D399;
  --r-sm:          9px;
  --r:             13px;
  --r-lg:          16px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

@media (max-width: 480px) {
  body { align-items: flex-start; padding: 16px; }
  .auth-card { padding: 28px 20px; margin-top: 16px; }
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 20px 60px rgba(0,0,0,.5);
}

.auth-logo img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  margin-bottom: 8px;
}

.auth-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  letter-spacing: -.015em;
}

.auth-sub {
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 8px;
}

form {
  width: 100%;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}

input {
  background: var(--surface-2);
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 13px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: box-shadow .15s;
  width: 100%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
input:focus { box-shadow: 0 0 0 1.5px var(--primary), 0 0 16px rgba(99,102,241,.1); }
input::placeholder { color: var(--text-3); }

.auth-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  margin-top: 4px;
  transition: background .14s, box-shadow .14s;
  width: 100%;
  box-shadow: 0 2px 12px rgba(99,102,241,.3);
}
.auth-btn:hover { background: var(--primary-light); box-shadow: 0 2px 16px rgba(99,102,241,.45); }
.auth-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.error {
  font-size: 13px;
  color: var(--error);
  background: rgba(248,113,113,.08);
  border-radius: var(--r-sm);
  padding: 9px 13px;
}
