* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f4f7;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1f2430;
}

.card {
  background: #ffffff;
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card h1 {
  font-size: 22px;
  margin: 0 0 4px;
  text-align: center;
}

.card .subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 24px;
}

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

label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #4f46e5;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
}

.btn-primary {
  background: #4f46e5;
  color: #fff;
}

.btn-primary:hover {
  background: #4338ca;
}

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

.btn-secondary {
  background: #eef0f4;
  color: #1f2430;
}

.btn-secondary:hover {
  background: #e2e5eb;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  color: #9ca3af;
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.links {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}

.links a {
  color: #4f46e5;
  text-decoration: none;
}

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

.msg {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  display: none;
}

.msg.show {
  display: block;
}

.msg.error {
  background: #fee2e2;
  color: #b91c1c;
}

.msg.success {
  background: #dcfce7;
  color: #166534;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.google-btn:hover {
  background: #f9fafb;
}

.google-btn img {
  width: 18px;
  height: 18px;
}

.center-text {
  text-align: center;
  font-size: 14px;
  color: #374151;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: -2px;
}

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

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

.icon-box.success {
  background: #dcfce7;
  color: #166534;
}

.icon-box.error {
  background: #fee2e2;
  color: #b91c1c;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar .brand {
  font-weight: 700;
}

.navbar button {
  padding: 8px 14px;
  font-size: 13px;
}
