* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  background: linear-gradient(135deg, #1e1b4b, #0f172a 60%);
  color: #e5e7eb;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
}

.auth-logo {
  font-size: 42px;
  text-align: center;
  margin-bottom: 8px;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 4px;
  color: #fff;
}

.subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  margin: 0 0 24px;
}

.tabs {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab {
  flex: 1;
  padding: 9px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab.active {
  background: #6366f1;
  color: #fff;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label span {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

input {
  padding: 12px 14px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder { color: #64748b; }
input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  animation: shake 0.4s;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.submit {
  padding: 13px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  box-shadow: 0 8px 24px -8px rgba(99, 102, 241, 0.6);
}
.submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px -8px rgba(99, 102, 241, 0.75);
}
.submit:active:not(:disabled) { transform: translateY(0); }
.submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hint {
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  margin: 20px 0 0;
}
.hint a {
  color: #818cf8;
  text-decoration: none;
  font-weight: 600;
}
.hint a:hover { text-decoration: underline; }