

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400;600;800&display=swap');

/* =========================
   RESET & BASE
========================= */
*{ margin:0; padding:0; box-sizing:border-box; }
html,body{ height:100%; }

body{
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-main);

  min-height: 100dvh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  padding: 20px;
  position: relative;
  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color:inherit; text-decoration:none; transition:.2s ease; }
img,svg{ display:block; }
button{ font-family:inherit; }

/* =========================
   OVERLAYS (NOISE + GLOW)
========================= */
/* ton div .noise-overlay existe déjà en HTML */
.noise-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* glow soft derrière (comme login/pricing) */
body::after{
  content:"";
  position: fixed;
  inset: -220px;
  pointer-events:none;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(208,0,0,.16), transparent 55%),
    radial-gradient(700px 360px at 10% 18%, rgba(255,255,255,.06), transparent 55%),
    radial-gradient(800px 420px at 90% 30%, rgba(208,0,0,.08), transparent 60%);
  opacity: .95;
}

/* =========================
   CONTAINER (PANEL GLASS)
========================= */
.register-container{
  position: relative;
  z-index: 1;

  width: min(460px, calc(100% - 40px));
  display:flex;
  flex-direction:column;
  gap: 12px;
  text-align: center;

  padding: 34px 30px;

  border-radius: var(--radius);
  border: 1px solid var(--agon-border-color);
  background:
    radial-gradient(760px 280px at 50% 0%, color-mix(in srgb, var(--agon-red) 14%, transparent), transparent 62%),
    color-mix(in srgb, var(--surface-color) 92%, transparent);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 14px 50px rgba(0,0,0,.55);
}

/* =========================
   TITLES
========================= */
.register-container h1{
  font-family: var(--font-title);
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-main);
  margin-bottom: 2px;
}

.subtitle{
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* =========================
   FORM
========================= */
.register-form{
  width: 100%;
  display:flex;
  flex-direction:column;
  gap: 12px;
  margin-top: 6px;
}

/* Inputs (same vibe login) */
.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"]{
  width: 100%;
  padding: 14px 14px;

  border: 1px solid var(--agon-border-color);
  border-radius: 12px; /* mets 0 si tu veux carré strict */

  font-size: 16px; /* iPhone anti-zoom */
  font-family: var(--font-body);
  color: var(--text-main);

  background: color-mix(in srgb, var(--bg-body) 72%, var(--surface-color));
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;

  appearance: none;
  -webkit-appearance: none;
}

.register-form input::placeholder{
  color: color-mix(in srgb, var(--text-dim) 85%, transparent);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.register-form input:focus{
  outline: none;
  border-color: var(--border-strong);
  background: color-mix(in srgb, var(--surface-color) 70%, var(--bg-body));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--agon-red) 18%, transparent);
}

/* Chrome autofill fix */
.register-form input:-webkit-autofill,
.register-form input:-webkit-autofill:hover,
.register-form input:-webkit-autofill:focus,
.register-form input:-webkit-autofill:active{
  -webkit-box-shadow: 0 0 0 30px var(--surface-color) inset !important;
  -webkit-text-fill-color: var(--text-main) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* =========================
   BUTTONS (btn-main full)
========================= */
.btn-main{
  width: 100%;
  min-height: 46px;

  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--agon-red) 60%, var(--agon-border-color));

  background: color-mix(in srgb, var(--agon-red) 22%, var(--surface-color));
  color: var(--text-main);

  font-family: var(--font-title);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .9px;

  cursor:pointer;
  user-select:none;
  touch-action: manipulation;

  transition: transform .12s ease, filter .12s ease, border-color .12s ease, letter-spacing .18s ease;
}

.btn-main.full{ width: 100%; }

.btn-main:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  border-color: color-mix(in srgb, var(--agon-red) 78%, var(--agon-border-color));
  letter-spacing: 2.2px;
}

.btn-main:active{
  transform: translateY(0);
}

/* =========================
   BOTTOM TEXT + LINKS
========================= */
.bottom-text{
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.bottom-text a{
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.bottom-text a:hover{
  color: var(--text-main);
  border-bottom-color: var(--text-main);
}

/* =========================
   ERROR (you already have inline .error-msg)
   -> we just align it with the theme
========================= */
.error-msg{
  border-radius: 12px; /* garde ton brutalist ? mets 0 si tu veux */
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================
   ACCESSIBILITY (reduced motion)
========================= */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; }
  .btn-main, .register-form input{ transition: none !important; }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 520px){
  body{ padding: 16px; }
  .register-container{ padding: 28px 18px; }
  .register-container h1{ letter-spacing: 1.6px; }
}
