/* =========================================================
   THEME TOKENS (YOUR SYSTEM)
========================================================= */
:root {
  --primary: #ffc5c7;
  --primary-soft: #fff1f2;
  --primary-soft-2: #ffe7ea;
  --primary-border: #ffb6bb;

  --bg-page: #fff8f9;
  --bg-card: #ffffff;

  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --heading: #0f172a;

  --border-light: #f0d7da;

  --shadow-soft:
    0 18px 40px rgba(31,41,55,0.08),
    0 6px 14px rgba(31,41,55,0.05);

  --radius: 22px;
}

/* =========================================================
   RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   BASE
========================================================= */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
}

/* =========================================================
   PAGE LAYOUT
========================================================= */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

/* =========================================================
   GLASS CARD
========================================================= */
.glass-surface {
  width: 100%;
  max-width: 460px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.94),
      rgba(255,255,255,0.6)
    );

  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);

  border: 1px solid var(--primary-border);
  border-radius: var(--radius);

  box-shadow: var(--shadow-soft);
  padding: 44px 40px;
}

/* =========================================================
   HEADINGS
========================================================= */
.auth-card h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* =========================================================
   GOOGLE BUTTON
========================================================= */
.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 14px 18px;
  margin-bottom: 26px;

  font-size: 15px;
  font-weight: 600;
  color: var(--heading);

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.95),
      rgba(255,255,255,0.7)
    );

  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);

  border: 1px solid var(--border-light);
  border-radius: 999px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 14px 28px rgba(31,41,55,0.12);

  cursor: pointer;
  transition:
    transform 0.35s cubic-bezier(.22,1,.36,1),
    box-shadow 0.35s cubic-bezier(.22,1,.36,1);
}

.google-btn img {
  width: 18px;
  height: 18px;
}

.google-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.95),
    0 20px 42px rgba(31,41,55,0.18);
}

.google-btn:active {
  transform: scale(0.97);
}

/* =========================================================
   DIVIDER
========================================================= */
.divider {
  position: relative;
  text-align: center;
  margin: 28px 0 30px;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
}

.divider span {
  position: relative;
  background: var(--bg-page);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-light);
}

/* =========================================================
   FORM
========================================================= */
.auth-form {
  display: grid;
  gap: 22px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;

  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border-light);
  border-radius: 14px;

  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--primary-border);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* =========================================================
   TERMS
========================================================= */
.terms {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.terms a {
  color: #cf333e;
  text-decoration: none;
  font-weight: 500;
}

.terms a:hover {
  text-decoration: underline;
}

/* =========================================================
   GLASS BUTTON
========================================================= */
.glass-btn {
  margin-top: 10px;
  padding: 14px 22px;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;

  color: var(--heading);

  background:
    radial-gradient(
      circle at top left,
      rgba(255,255,255,0.95),
      rgba(255,255,255,0.6)
    );

  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  border: 1px solid var(--primary-border);
  border-radius: 999px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 10px 24px rgba(31,41,55,0.14);

  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(.22,1,.36,1),
    box-shadow 0.3s cubic-bezier(.22,1,.36,1);
}

.glass-btn.full {
  width: 100%;
}

.glass-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    0 16px 36px rgba(31,41,55,0.18);
}

.glass-btn:active {
  transform: scale(0.97);
}

/* =========================================================
   FOOTER TEXT
========================================================= */
.footer-text {
  margin-top: 26px;
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
}

.link {
  color: #cf333e;
  text-decoration: none;
  font-weight: 500;
}

.link:hover {
  text-decoration: underline;
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 480px) {
  .glass-surface {
    padding: 36px 26px;
  }
}
