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

html, body {
  width: 100%; height: 100%;
  background: #0f0f1a;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #e8e8f0;
}

.auth-container {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 80px;
}

.auth-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 1.2rem;
}

.auth-footer a {
  font-size: 12px;
  color: rgba(232, 232, 240, 0.2);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.auth-footer a:hover {
  color: rgba(232, 232, 240, 0.5);
}

.auth-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-card h1 {
  font-size: 28px;
  font-weight: 300;
  color: #c8a96e;
  letter-spacing: 3px;
  text-transform: lowercase;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  font-size: 13px;
  color: rgba(232, 232, 240, 0.4);
  margin-bottom: 32px;
}

/* ── Form ──────────────────────────────────────────── */

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 13px;
  color: rgba(232, 232, 240, 0.5);
  font-weight: 500;
}

.field input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e8e8f0;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.field input::placeholder {
  color: rgba(232, 232, 240, 0.25);
}

.field input:focus {
  border-color: rgba(200, 169, 110, 0.5);
}

.field input.error {
  border-color: #e05555;
}

/* ── Buttons ───────────────────────────────────────── */

.btn-primary {
  width: 100%;
  padding: 14px 0;
  margin-top: 8px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  border: none;
  background: #c8a96e;
  color: #0f0f1a;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:active { transform: scale(0.96); }
.btn-primary:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn-google {
  width: 100%;
  padding: 12px 0;
  margin-top: 4px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  color: #e8e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

/* ── Divider ───────────────────────────────────────── */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 6px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.divider span {
  font-size: 12px;
  color: rgba(232, 232, 240, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Links ─────────────────────────────────────────── */

.auth-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.auth-links a {
  font-size: 14px;
  color: rgba(200, 169, 110, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.auth-links a:hover {
  color: #c8a96e;
}

/* ── Error message ─────────────────────────────────── */

.auth-error {
  display: none;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(224, 85, 85, 0.15);
  border: 1px solid rgba(224, 85, 85, 0.3);
  color: #e05555;
  font-size: 14px;
  text-align: center;
}

.auth-error.visible {
  display: block;
}

/* ── Success message ───────────────────────────────── */

.auth-success {
  display: none;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #4ade80;
  font-size: 14px;
  text-align: center;
}

.auth-success.visible {
  display: block;
}

/* ── Spinner ───────────────────────────────────────── */

.btn-primary .spinner-inline {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(15, 15, 26, 0.3);
  border-top-color: #0f0f1a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

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

/* ── Profile ──────────────────────────────────────── */

.profile-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px;
}

.profile-label {
  font-size: 13px;
  color: rgba(232, 232, 240, 0.4);
}

.profile-value {
  font-size: 14px;
  color: #e8e8f0;
  text-align: right;
}
