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

/* Theme (align with home.css) */
:root{
  --bg:#0d0f12;
  --card:#0f141d;
  --line:#1b2230;
  --text:#e9eef5;
  --muted:#b6c2d0;
  --accent:#7fc4ff;
  --accent-strong:#4aa2ff;
  --shadow: 0 10px 35px rgba(0,0,0,.45);
}

html, body { height: 100%; }
body{
  font-family:'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--footer-h);
}


.foot{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--footer-h);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: 14px 16px;

  border-top: 1px solid var(--line);
  background: var(--bg);                  /* solid bg so it reads over content */
  color: var(--muted);
  z-index: 50;
}


.foot .foot-link{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--muted);
}
.foot .foot-link:hover{
  color: var(--text);
  border-bottom-color: var(--text);
}

/* Header (match home.css exactly) */
/* Header (shared) */


/* (optional) hard lock the height if needed across browsers) */
/* .top{ min-height: 52px; } */


.home-link{
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
}
.home-link:hover{ border-color: #2b4767; }

/* avoid visual overlap with fixed topbar on very small screens */
.login-wrap{ padding-top: 52px; }


/* Single-panel layout */
.login-wrap{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(80% 60% at 70% 20%, rgba(127,196,255,.08), transparent 60%),
    radial-gradient(70% 60% at 10% 80%, rgba(127,196,255,.05), transparent 60%);
}

/* Card */
.card{
  width: min(460px, 94%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.title{ font-size: 1.4rem; margin-bottom: 8px; }
.tagline{ color: var(--muted); font-size: .98rem; margin-bottom: 12px; }

/* Flash messages */
.flash{
  background: #191f2a;
  border: 1px solid #2a3546;
  color: #cfe1ff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

/* Form */
.form{ display: grid; gap: 10px; margin-bottom: 14px; }
.form label{ font-size: .9rem; color: var(--muted); }
.form input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0c1118;
  color: var(--text);
  outline: none;
}
.form input:focus{
  border-color: #2b4767;
  box-shadow: 0 0 0 3px rgba(127,196,255,.12);
}

/* Buttons */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; text-decoration: none; padding: 10px 14px;
  border-radius: 10px; font-weight: 600; border: 1px solid transparent;
  transition: background .15s ease, border .15s ease, transform .03s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--accent); color:#081018; }
.btn-primary:hover{ background: var(--accent-strong); }

/* OAuth */
.oauth{ display: grid; gap: 10px; margin: 12px 0 8px; }
.oauth-btn{
  display: inline-flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; border: 1px solid var(--line);
  background: #0c1118; color: var(--text);
}
.oauth-btn img{ width: 18px; height: 18px; display: block; }
.oauth-btn.google:hover{ border-color: #355b86; }
.oauth-btn.apple{ background: #0a0d12; }
.oauth-btn.apple:hover{ border-color: #2a3546; }

/* Meta */
.meta{ margin-top: 6px; text-align: center; color: var(--muted); }
.meta a{ color: var(--text); text-decoration: none; }
.meta a:hover{ text-decoration: underline; }
