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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 50%, #003a6b 100%);
  z-index: -1;
}

.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,120,212,0.3) 0%, transparent 50%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: 20px;
  z-index: 1;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.logo h1 {
  font-size: 26px;
  font-weight: 300;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: #f3f3f3;
  padding: 4px;
  border-radius: 8px;
}

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

.tab.active {
  background: #fff;
  color: #0078d4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form {
  display: none;
}

.form.active {
  display: block;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12px;
  color: #444;
  margin-bottom: 6px;
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.15s;
  outline: none;
}

.field input:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

.btn-primary {
  width: 100%;
  padding: 11px;
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 8px;
}

.btn-primary:hover {
  background: #106ebe;
}

.btn-primary:active {
  background: #005a9e;
  transform: scale(0.99);
}

.btn-primary:disabled {
  background: #a0a0a0;
  cursor: not-allowed;
}

.hint {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 12px;
}

.message {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  display: none;
}

.message.error {
  display: block;
  background: #fef0f0;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.message.success {
  display: block;
  background: #eefbf1;
  color: #2d7a3e;
  border: 1px solid #c3e6cb;
}
