/* The sign-in and sign-up card styles, shared by pages/login.html and pages/signup.html.
   Rules only one page uses stay inline in that page, in a <style> right after its <link>. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: var(--rb-accent); --blue-light: var(--rb-accent-lite);
  --dark: #0F172A; --gray-700: #334155; --gray-500: #64748B;
  --gray-300: #CBD5E1; --gray-200: #E2E8F0; --gray-100: #F1F5F9; --white: #FFF;
  --hairline: #E6EBE2; --go: #0BD873;
  --shadow-sm: 0 1px 2px rgba(14,20,17,.06); --shadow: 0 1px 2px rgba(14,20,17,.05),0 4px 16px rgba(14,20,17,.05);
}
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--gray-100);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  -webkit-font-smoothing: antialiased;
  padding: 20px;
}
.login-container { width: 100%; max-width: 480px; padding: 20px; }
.login-card {
  background: var(--white);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--hairline);
  text-align: center;
}
.login-logo {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.login-logo .icon {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(135deg, var(--rb-accent), var(--rb-accent-lite));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.login-logo .icon svg { width: 36px; height: 36px; }
.login-card h1 {
  font-size: 1.8rem;
  font-weight:700;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.login-card .subtitle {
  color: var(--gray-500);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.4;
}
.error-box {
  display: none;
  background: rgba(239,68,68,0.08);
  color: #DC2626;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: left;
}
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.10);
}
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-link {
  background: none;
  color: var(--gray-500);
  font-weight: 500;
  font-size: 13px;
  padding: 8px;
  margin-top: 4px;
  box-shadow: none;
}
.btn-link:hover { color: var(--dark); }
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0 16px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.google-wrap { display: flex; justify-content: center; width: 100%; overflow: hidden; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 12px; background: #fff; cursor: pointer; font-family: 'Inter', -apple-system, sans-serif; font-size: 15px; font-weight: 600; color: var(--gray-900); transition: background 0.15s, box-shadow 0.15s; }
.google-btn:hover { background: var(--gray-50); box-shadow: var(--shadow-sm); }
.google-btn svg { flex-shrink: 0; }
.legal-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 16px;
  margin-bottom: 0;
}
.legal-disclaimer a { color: var(--blue); text-decoration: none; font-weight: 600; }
.legal-disclaimer a:hover { text-decoration: underline; }
.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--gray-500);
}
.login-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  body { align-items: flex-start; padding-top: 40px; }
  .login-card h1 { font-size: 1.5rem; }
}
