/* public/login.css */
/* Dark CAM-themed login screen (CSP-safe, no inline styles) */

/* --- Page shell ---------------------------------------------------------- */
html, body { height: 100%; }

#auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;

  /* Match CAM app background */
  background:
    radial-gradient(1200px 800px at -10% -10%, #0c1421 0%, transparent 60%),
    radial-gradient(900px 650px at 120% -15%, #0d1a2b 0%, transparent 55%),
    var(--bg);
  color: var(--text);
}

/* --- Card --------------------------------------------------------------- */
.auth-card {
  width: 100%;
  max-width: 440px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 36px 30px;
  animation: fadeIn .5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Subtle accent hairline on top edge */
.auth-card::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  margin: -36px 0 28px 0; /* sits above inner padding */
  background: linear-gradient(90deg, transparent, rgba(127,178,255,.35), transparent);
  border-radius: 999px;
}

/* --- Header ------------------------------------------------------------- */
.auth-header h1 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: .3px;
  color: var(--text);
}
.auth-header .accent { color: var(--accent); }
.auth-header p {
  margin-top: 8px;
  font-size: .95rem;
  color: var(--muted);
}

/* --- Google button (brand look preserved) ------------------------------- */
.google-btn {
  --gblue: #4285F4;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background-color: #ffffff;    /* white fill */
  color: var(--gblue);          /* blue text */
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;

  border: 2px solid var(--gblue); /* blue outline */
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition:
    background-color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .05s ease;
}
.google-btn:hover {
  background-color: #f5f9ff;
  border-color: #5a95f6;
  box-shadow: 0 4px 16px rgba(0,0,0,.32);
}
.google-btn:active {
  transform: translateY(1px);
  background-color: #eef4ff;
  border-color: #357ae8;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.google-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px rgba(66,133,244,.65);
}
.google-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* --- Footer ------------------------------------------------------------- */
.auth-footer {
  margin-top: 32px;
  font-size: .85rem;
  color: var(--muted);
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 560px) {
  .auth-card { padding: 28px 22px; }
  .auth-card::before { margin-top: -28px; margin-bottom: 22px; }
  .auth-header h1 { font-size: 1.45rem; }
}
