:root {
  --background: #f8f8f8;
  --card: #fff;
  --border: #e4e4e7;
  --foreground: #09090b;
  --muted: #71717a;
  --accent: #f4f4f5;
  --primary: #111827;
  --radius-md: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--foreground);
}

.auth-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--background);
  padding: 32px 16px;
}

.auth-panel {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.auth-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.auth-footer a {
  color: var(--foreground);
  font-weight: 600;
  text-decoration: none;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.auth-logo {
  width: 160px;
}

.auth-card {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.auth-card-header {
  margin-bottom: 24px;
}

.auth-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.auth-card-header h2 {
  margin: 0;
  font-size: 26px;
}

.auth-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--foreground);
}

.auth-field input {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fcfcfc;
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input:focus {
  outline: none;
  border-color: #d4d4d8;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.auth-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #111827;
}

.ghost-link {
  border: none;
  background: transparent;
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.ghost-link.align-center {
  width: 100%;
  text-align: center;
}

.auth-hint {
  font-size: 13px;
  color: var(--muted);
  margin: -6px 0 0;
}

.auth-feedback {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 500;
}

.auth-feedback.error {
  color: #dc2626;
}

.auth-feedback.success {
  color: #15803d;
}

.auth-submit {
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
}

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

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-google {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

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

.g-recaptcha {
  transform: scale(0.94);
  transform-origin: left;
}

@media (max-width: 1100px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    padding: 24px;
  }

  .auth-card {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 24px;
  }

  .auth-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .auth-layout {
    min-height: auto;
  }
}
