/* ============================================================================
   THEME: CITRUS BREEZE - Fresh Mesh Glass / Web Auth
   Teal + Coral + Amber | Frosted Glass | Living Glow
   ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Geist+Mono:wght@500&display=swap');

:root {
  --bg-deep: #F6FAFA;
  --bg: #EAF6F4;
  --card: rgba(255, 255, 255, 0.68);
  --card-border: rgba(13, 148, 136, 0.16);
  --ink: #10231F;
  --muted: #64827C;
  --line: rgba(16, 35, 31, 0.08);
  --sun: #0D9488;
  --sun-2: #FB7185;
  --solar-blue: #FB7185;
  --solar-cyan: #E11D48;
  --eco-lime: #F59E0B;
  --panel-grid: rgba(13,148,136,0.05);
  --radius: 18px;
  --radius-lg: 26px;
  --color-text-muted: var(--muted);
  --font-size-sm: 12.5px;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-deep);
  color: var(--ink);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

/* CITRUS MESH BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 10% 10%, rgba(13,148,136,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 92% 15%, rgba(251,113,133,0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 95%, rgba(245,158,11,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 92%, rgba(13,148,136,0.12) 0%, transparent 55%);
  z-index: -3;
}

/* LIVING GLOW BEHIND CARD */
body::after {
  content: '';
  position: fixed;
  width: 620px; height: 620px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(13,148,136,0.20) 0%, rgba(251,113,133,0.14) 40%, transparent 70%);
  filter: blur(50px);
  border-radius: 50%;
  animation: auroraPulse 6s ease-in-out infinite;
  z-index: -2;
}
@keyframes auroraPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* CARD */
.register-card {
  isolation: isolate;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.6) inset,
    0 24px 60px rgba(16,35,31,0.10),
    0 8px 24px rgba(13,148,136,0.10);
  animation: cardRise 0.7s cubic-bezier(0.16,1,0.3,1) both, cardBreathe 5s ease-in-out 0.7s infinite;
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardBreathe {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset, 0 24px 60px rgba(16,35,31,0.10), 0 8px 24px rgba(13,148,136,0.10); }
  50%      { box-shadow: 0 0 0 1px rgba(255,255,255,0.6) inset, 0 24px 60px rgba(16,35,31,0.10), 0 8px 36px rgba(13,148,136,0.20); }
}

/* Soft mesh glow tucked behind top corner */
.register-card::before {
  content: '';
  position: absolute;
  top: -70px; right: -70px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(251,113,133,0.32) 0%, rgba(13,148,136,0.16) 45%, transparent 70%);
  filter: blur(10px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* Thin top light seam */
.register-card::after {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--sun), var(--eco-lime), transparent);
  opacity: 0.5;
}

.register-card > * { position: relative; z-index: 1; }

/* LOGO */
.logo-img {
  width: 44%;
  height: 117px;
  display: block;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(13,148,136,0.25));
  animation: logoFloat 4.5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* EYEBROW CHIP */
.auth-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sun);
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 0 auto 16px;
  width: fit-content;
  padding: 6px 14px;
  background: rgba(13,148,136,0.08);
  border: 1px solid rgba(13,148,136,0.20);
  border-radius: 999px;
}
.auth-eyebrow::before { content: '✦'; font-size: 11px; color: var(--eco-lime); animation: sway 2.4s ease-in-out infinite; transform-origin: bottom center; }
@keyframes sway { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: -0.02em;
  text-align: center;
  color: var(--ink);
  position: relative;
  padding-bottom: 14px;
}
h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 3px; border-radius: 99px;
  background: linear-gradient(90deg, var(--sun), var(--sun-2), var(--eco-lime));
}

.auth-subtitle {
  text-align: center; color: var(--muted); font-size: 13.5px;
  margin: 8px 0 26px; line-height: 1.5;
}

/* LABELS */
label, .captcha-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
label::before {
  content: ''; width: 4px; height: 4px; background: var(--sun-2); border-radius: 50%;
  box-shadow: 0 0 6px rgba(251,113,133,0.6);
}

/* INPUTS - Glass Pill Style */
.input-icon-group { position: relative; margin-bottom: 16px; }
.input-icon-group > i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
  background: rgba(16,35,31,0.04);
  border-radius: 50%;
  transition: 0.3s ease;
}

.form-control, select {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 14.5px; font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(16,35,31,0.08);
  border-radius: 14px;
  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative;
}

.form-control::placeholder { color: #94A9A0; }
.form-control:focus, select:focus {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--sun);
  box-shadow: 0 0 0 4px rgba(13,148,136,0.14), 0 4px 16px rgba(13,148,136,0.12);
  transform: translateY(-1px);
  color: var(--sun);
}
.input-icon-group:focus-within > i { color: var(--sun); background: rgba(13,148,136,0.14); transform: translateY(-50%) scale(1.1); }

select { color: var(--ink); }
select:invalid { color: #94A9A0; }

/* CHECKBOX ROW ("remember me") */
.form-check-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 18px;
  flex-wrap: wrap; gap: 8px;
}
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check-input {
  width: 16px; height: 16px; margin: 0;
  accent-color: var(--sun);
  background-color: rgba(255,255,255,0.8);
  border: 1px solid rgba(16,35,31,0.2);
  cursor: pointer;
}
.form-check-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}

/* BUTTON - Citrus Gradient */
.button-33 {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: #FFFFFF;
  background: linear-gradient(100deg, var(--sun) 0%, var(--sun-2) 55%, var(--eco-lime) 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 10px 26px rgba(13,148,136,0.30), 0 0 0 1px rgba(13,148,136,0.25) inset;
  transition: all 0.3s ease;
}

.button-33::before {
  content: '';
  position: absolute; top: 0; left: 8%; right: 8%; height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
  border-radius: 999px 999px 50% 50%;
  pointer-events: none;
}

.button-33::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%) skewX(-15deg);
  transition: transform 0.6s ease;
}

.button-33:hover {
  transform: translateY(-2px) scale(1.01);
  background-position: right center;
  box-shadow: 0 14px 34px rgba(13,148,136,0.40), 0 0 30px rgba(251,113,133,0.28);
}
.button-33:hover::after { transform: translateX(100%) skewX(-15deg); }

.button-42 {
  width: 100%; height: 46px; margin-top: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,0.4); border: 1px solid rgba(13,148,136,0.22);
  border-radius: 999px; cursor: pointer; transition: 0.25s ease;
}
.button-42:hover {
  color: var(--sun); border-color: var(--sun);
  background: rgba(13,148,136,0.08);
}

/* CAPTCHA */
.captcha-container {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
#captchaCanvas {
  border-radius: 12px; border: 1px solid rgba(16,35,31,0.1);
  background: rgba(255,255,255,0.6);
  flex: 1; min-width: 0;
}
.refresh-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', monospace; font-size: 14px;
  background: linear-gradient(135deg, var(--sun), var(--sun-2)); color: #FFFFFF; border: none; border-radius: 50%;
  font-weight: 700; cursor: pointer; transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(13,148,136,0.35);
}
.refresh-btn:hover { transform: rotate(180deg) scale(1.08); }

/* LINKS */
a { color: var(--solar-cyan); font-size: 13px; font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(225,29,72,0.35); }
a:hover { color: var(--sun); border-bottom-color: var(--sun); }

.auth-links {
  margin-top: 24px; padding-top: 18px;
  border-top: 1px solid rgba(16,35,31,0.08);
  position: relative;
  text-align: center;
}
.auth-links::before {
  content: '✦ 100% Secure';
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--bg-deep); padding: 0 10px;
  font-family: 'Geist Mono', monospace; font-size: 9px; color: var(--sun);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.auth-links-inline {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.auth-links-inline .sep { color: var(--muted); border: none; font-size: 12px; }

.alert-success {
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(13,148,136,0.14)) !important;
  border: 1px solid rgba(13,148,136,0.3) !important;
  color: var(--ink) !important; border-radius: 14px;
}
