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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #0F172A;
  background:
    radial-gradient(circle at 18% 12%, rgba(6,182,212,.18), transparent 34%),
    radial-gradient(circle at 82% 86%, rgba(245,158,11,.12), transparent 32%),
    linear-gradient(180deg, #FFFFFF 0%, #F4F7FC 62%, #FAFBFE 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 72% 62% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 20%, #000 0%, transparent 75%);
}

.auth-card {
  width: 100%;
  max-width: 410px;
  padding: 40px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: 0 24px 70px -28px rgba(15,23,42,.28), 0 0 80px -26px rgba(6,182,212,.22);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  position: relative;
}

.auth-card h1 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 6px; }
.auth-card .subtitle { color: #64748B; font-size: 14px; line-height: 1.45; margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 7px; }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 10px;
  font-size: 14px;
  color: #0F172A;
  background: rgba(255,255,255,.86);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-group input:focus {
  border-color: #06B6D4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6,182,212,.14);
}

.remember-row { display: flex; align-items: center; gap: 10px; margin: -4px 0 18px; font-size: 13px; color: #334155; }
.remember-row input { width: auto; margin: 0; accent-color: #06B6D4; }
.security-note { margin: -6px 0 18px; font-size: 12px; color: #64748B; line-height: 1.45; }

.btn-google {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 10px;
  color: #0F172A;
  background: rgba(255,255,255,.90);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.btn-google:hover {
  transform: translateY(-1px);
  border-color: rgba(15,23,42,.24);
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(15,23,42,.32);
}
.google-mark {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #0F172A;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  font-size: 13px;
  font-weight: 800;
}
.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15,23,42,.10);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 50%, #0891B2 100%);
  color: #fff;
  border: 1px solid rgba(6,182,212,.50);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  box-shadow: 0 10px 24px -8px rgba(6,182,212,.45);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #67E8F9 0%, #22D3EE 50%, #0EA5E9 100%);
  box-shadow: 0 14px 30px -10px rgba(6,182,212,.55);
}

.error { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; }
.success { background: #ECFDF5; border: 1px solid #A7F3D0; color: #047857; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 18px; }

.footer-link { text-align: center; margin-top: 20px; font-size: 14px; color: #64748B; }
.footer-link a,
.footer-link button { color: #0891B2 !important; text-decoration: none; font-weight: 600; }
.footer-link a:hover,
.footer-link button:hover { text-decoration: underline; }

.secondary-form { margin-top: 16px; text-align: center; }
.link-button {
  border: 0;
  background: none;
  color: #64748B;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 0;
}
.link-button:hover { color: #0891B2; text-decoration: underline; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  color: #0891B2;
  margin-bottom: 24px;
  letter-spacing: -.01em;
}
.logo::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #06B6D4;
  background: radial-gradient(circle, #06B6D4 0 28%, transparent 30%);
  box-shadow: 0 0 18px rgba(6,182,212,.32);
}
