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

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.auth-bg {
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: #0e0e11;
  border: 1px solid #232327;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  justify-content: flex-start;
}

.brand-logo { width: 44px; height: 44px; object-fit: contain; }

.logo span {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
}

.auth-subtitle { font-size: 14px; color: #8b8b95; margin-bottom: 24px; }
.auth-note { font-size: 12px; color: #6c6c75; line-height: 1.5; margin-top: 18px; text-align: center; }
.auth-note b { color: #9a9aa3; }

.tabs {
  display: flex;
  background: #f4f5f7;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
}

.tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.tab.active {
  background: #fff;
  color: #1a1f36;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form.hidden { display: none; }

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

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #c7c7cf;
}

.field input {
  padding: 12px 14px;
  border: 1.5px solid #2a2a30;
  border-radius: 10px;
  font-size: 16px;
  color: #f2f2f4;
  background: #161619;
  transition: border-color 0.2s;
  outline: none;
}

.field input:focus { border-color: #5b8cff; box-shadow: 0 0 0 3px rgba(91,140,255,0.18); }
.field input::placeholder { color: #6c6c75; }

.btn-primary {
  padding: 13px;
  background: #4F80FF;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-primary:hover { background: #3b6fe0; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.error-msg {
  font-size: 13px;
  color: #dc2626;
  min-height: 18px;
  font-weight: 500;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }
