:root {
  --bg: #0f1729;
  --panel: #ffffff;
  --ink: #0f1729;
  --muted: #5b6577;
  --accent: #3b5bdb;
  --accent-soft: #eef2ff;
  --line: #e4e8f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #f6f8fc 0%, #eef1f7 100%);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 48px;
  max-width: 420px;
  width: 100%;
  margin: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 41, 0.08), 0 8px 24px rgba(15, 23, 41, 0.06);
}

.login-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4c6ef5, #7048e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: white;
}

.login-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.login-header .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.5;
}

.btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn:hover {
  background: #1d3bb8;
}

.btn:active {
  transform: scale(0.98);
}

.google-icon {
  width: 18px;
  height: 18px;
}

.loading {
  display: none;
}

.btn.loading .loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s linear infinite;
}

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

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.footer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 24px;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.error {
  background: #fff0f5;
  border: 1px solid #ffd6e6;
  color: #a61e4d;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.error.show {
  display: block;
}
