/* ============================================
   NEPTUNE MINER — LOGIN PAGE (REDESIGNED)
   ============================================ */

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

html, body {
  min-height: 100%;
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
}

body {
  background: linear-gradient(
    to bottom,
    #020c1e 0%,
    #0a1e46 18%,
    #143176 42%,
    #1e60a0 60%,
    #2a88c8 78%,
    #3ab0d8 100%
  ) no-repeat fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* Header above card */
.login-header-block {
  text-align: center;
  margin-bottom: 2rem;
}
.login-header-block h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900; color: #fff; margin-bottom: 0.6rem;
}
.login-header-block p {
  font-size: 0.95rem; font-weight: 300; color: rgba(255,255,255,0.72);
}

/* ── CARD ── */
.login-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2rem;
  width: 100%; max-width: 560px;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; z-index: 1;
}

/* Logo inside card — hide since we have the header */
.login-logo { display: none; }

/* Title/subtitle inside card — show as fallback only */
.login-title {
  font-size: 1.5rem; font-weight: 900; text-align: center;
  color: #0b1e46; margin-bottom: 0.25rem;
}
.login-subtitle {
  text-align: center; font-size: 0.9rem; font-weight: 300;
  color: #5a7a9c; line-height: 1.6; margin-bottom: 0.5rem;
}

/* ── GOOGLE BUTTON ── */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  width: auto; max-width: 320px; margin: 0 auto;
  padding: 0.7rem 1.75rem;
  background: #52b2e8;
  border: none; border-radius: 50px;
  color: #000; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
  font-family: inherit;
}
.btn-google:hover { background: #40a4da; }

/* ── OR DIVIDER ── */
.or-divider {
  text-align: center;
  font-size: 0.88rem; font-weight: 300; color: #000;
}
.or-divider::before, .or-divider::after { display: none; }

/* ── TABS ── */
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.auth-tab {
  padding: 0.75rem; border-radius: 50px;
  background: #f0f2f5; border: none;
  font-size: 0.92rem; font-weight: 500; color: #5a7a9c;
  cursor: pointer; text-align: center;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.auth-tab.active { background: #e0e8f4; color: #0b1e46; font-weight: 600; }
.auth-tab:hover { background: #e4eaf5; }

/* ── FORM ── */
.auth-form { display: none; flex-direction: column; gap: 0.85rem; }
.auth-form.visible { display: flex; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.82rem; font-weight: 600; color: #5a7a9c;
}
.form-group input {
  padding: 0.9rem 1.25rem;
  background: #f0f2f5; border: none;
  border-radius: 50px; color: #000;
  font-size: 0.92rem; font-family: inherit;
  outline: none; text-align: center; transition: background 0.2s;
}
.form-group input::placeholder { color: #000; }
.form-group input:focus { background: #e4eaf5; }
.form-group input.error { background: #fef2f2; box-shadow: 0 0 0 2px #fca5a5; }

.forgot-link {
  text-align: right; font-size: 0.82rem; font-weight: 400;
  color: #5a7a9c; text-decoration: none; transition: color 0.2s;
  margin-top: -0.25rem;
}
.forgot-link:hover { color: #0b1e46; text-decoration: underline; }

/* ── AUTH BUTTON ── */
.btn-auth {
  width: auto; max-width: 320px; display: block; margin: 0.25rem auto 0;
  padding: 0.8rem 2.5rem;
  background: #0b1e46; color: #fff;
  font-weight: 700; font-size: 1rem;
  border: none; border-radius: 50px;
  cursor: pointer; font-family: inherit;
  transition: background 0.2s;
}
.btn-auth:hover { background: #143176; }
.btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── MESSAGES ── */
.auth-msg {
  display: none; padding: 0.75rem 1rem; border-radius: 50px;
  font-size: 0.85rem; text-align: center; margin-top: 0.5rem;
}
.auth-msg.error   { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }
.auth-msg.success { background: #f0fdf4; border: 1px solid #86efac; color: #16a34a; }
.auth-msg.show { display: block; }

/* ── FOOTER ── */
.login-footer {
  text-align: center; margin-top: 0.5rem;
  font-size: 0.82rem; font-weight: 300; color: #5a7a9c; line-height: 1.6;
}
.login-footer a { color: #0b1e46; font-weight: 500; text-decoration: underline; }
.login-footer a:hover { color: #143176; }

/* Legal text below card */
.login-legal-note {
  text-align: center; margin-top: 1.75rem;
  font-size: 0.82rem; font-weight: 300; color: rgba(255,255,255,0.6);
}
.login-legal-note a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.login-legal-note a:hover { color: #fff; }

/* ── SPINNER ── */
.spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  animation: spin 0.7s linear infinite; vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .login-card { padding: 2rem 1.25rem; }
  .auth-tabs { grid-template-columns: 1fr; }
}
