:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --card: #ffffff;
  --stroke: rgba(15, 23, 42, 0.08);
  --text: #111827;
  --muted: #6b7280;
  --accent: #111827;
  --accent-soft: #eef2ff;
  --shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  background: radial-gradient(circle at top right, #ffffff 0%, #f5f7ff 45%, #f1f5f9 100%);
  color: var(--text);
  min-height: 100vh;
}

.view {
  display: none;
  min-height: 100vh;
}

.view.active {
  display: block;
}

.login-shell {
  width: min(92vw, 460px);
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.title {
  margin: 0 0 8px;
  font-size: 26px;
}

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

.button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  background: var(--accent);
  color: #ffffff;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.button-outline {
  background: #ffffff;
  color: var(--accent);
  border: 1px solid var(--stroke);
}

.button-soft {
  background: var(--accent-soft);
  color: var(--accent);
}

#view-login #googleButton {
  margin-top: 10px;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.08);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--muted);
}

.field input {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.field input:focus {
  outline: none;
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.action-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.error {
  margin-top: 14px;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #b91c1c;
  font-size: 13px;
}

.hint {
  font-size: 12px;
  color: var(--muted);
}

#view-login .hint {
  margin-top: 14px;
}

@media (max-width: 520px) {
  .login-shell {
    width: 100%;
    padding: 20px 12px;
    gap: 14px;
  }

  .login-shell .brand img {
    width: min(72vw, 160px);
    height: auto;
  }

  .card {
    border-radius: 16px;
    padding: 20px;
  }

  .title {
    font-size: 22px;
  }

  .subtitle {
    margin-bottom: 18px;
  }

  .action-row {
    grid-template-columns: 1fr;
  }
}
