/* =========================
   Auth.css — Apple/Facebook Glass Login
========================= */

.page-auth {
  background: var(--page-bg);
  color: var(--text);
}

/* Center layout */
.auth-wrap {
  min-height: calc(100vh - var(--header-h, 0px));
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 420px;

  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 22px;

  padding: 22px;

  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  animation: authIn 700ms cubic-bezier(.16,1,.3,1) both;
}

@keyframes authIn {
  from { opacity:0; transform: translateY(14px) scale(0.99); filter: blur(8px); }
  to   { opacity:1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Title */
.auth-title {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 6px 0 18px;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.5;
}

/* Form */
.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-icon);
}

.auth-field input {
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--border);

  padding: 0 14px;
  font-size: 14px;
  font-weight: 650;

  background: var(--surface-stronger);
  outline: none;

  box-shadow: var(--shadow-sm);
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 160ms ease;
}

.auth-field input:focus {
  border-color: var(--accent-border-3);
  box-shadow: 0 0 0 5px var(--accent-soft-2);
  transform: translateY(-1px);
}

/* Buttons */
.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.auth-btn {
  height: 46px;
  border-radius: 16px;
  border: 0;
  cursor: pointer;

  font-weight: 900;
  font-size: 14px;

  transition: transform 160ms ease, filter 160ms ease;
}

.auth-btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 34px var(--accent-shadow);
}

.auth-btn.ghost {
  background: var(--surface-muted);
  color: var(--text);
}

.auth-btn:hover {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

.auth-btn:active {
  transform: translateY(-1px);
}

/* Message */
.auth-msg {
  margin-top: 10px;
  font-weight: 850;
  font-size: 13px;
}

.auth-msg.ok { color: var(--success); }
.auth-msg.err { color: var(--danger); }



