/* =========================
   RESET / BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(168, 119, 255, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(212, 177, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #f6f1fb 0%, #f2edf8 100%);
  color: #24163f;
}

/* =========================
   GLOBAL PAGE
========================= */

.tc-authPage {
  position: relative;
  min-height: 100vh;
  padding: 88px 24px 60px;
  overflow: hidden;
}

/* Background glow */

.tc-authBg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tc-authGlow {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.45;
}

.tc-authGlow--1 {
  width: 380px;
  height: 380px;
  background: #c08cff;
  top: 60px;
  left: -80px;
}

.tc-authGlow--2 {
  width: 320px;
  height: 320px;
  background: #e2c2ff;
  top: 40px;
  right: 120px;
}

.tc-authGlow--3 {
  width: 260px;
  height: 260px;
  background: #cfabff;
  bottom: 40px;
  left: 35%;
}

/* =========================
   LAYOUT
========================= */

.tc-authShell {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.tc-authShell--login {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: stretch;
}

.tc-authShell--single {
  max-width: 560px;
  margin: 0 auto;
}

.tc-authPanel {
  min-width: 0;
}

/* =========================
   LEFT SIDE (HERO)
========================= */

.tc-socialHero {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 30px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(100, 60, 170, 0.12);

  padding: 36px;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Badge */

.tc-socialHero__badge {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(167, 120, 255, 0.14);
  color: #7f4ad2;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Title */

.tc-socialHero__title {
  font-size: clamp(40px, 4vw, 72px);
  line-height: 1;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.tc-socialHero__title span {
  color: #6f2bff;
}

/* Description */

.tc-socialHero__desc {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #403257;
  max-width: 650px;
}

/* Stats */

.tc-socialHero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.tc-socialHero__stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.75);
}

.tc-socialHero__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(150, 100, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.tc-socialHero__statText strong {
  font-size: 1.4rem;
}

.tc-socialHero__statText span {
  font-size: 0.9rem;
  color: #6d5f89;
}

/* Community block */

.tc-socialHero__community {
  margin-top: 35px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255,255,255,0.55);
}

.tc-socialHero__communityText h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.tc-socialHero__communityText p {
  margin: 0 0 22px;
  color: #5c4f78;
}

/* Features */

.tc-socialHero__features {
  display: grid;
  gap: 16px;
}

.tc-socialHero__feature {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
}

.tc-socialHero__featureIcon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(150, 100, 255, 0.12);
  display: grid;
  place-items: center;
}

.tc-socialHero__feature strong {
  display: block;
}

.tc-socialHero__feature p {
  margin: 0;
  font-size: 0.95rem;
  color: #65597c;
}

/* =========================
   RIGHT SIDE (LOGIN)
========================= */

.tc-authPanel--right {
  display: flex;
}

.tc-authCard {
  background: rgba(255,255,255,0.65);
  border-radius: 30px;
  padding: 36px;
  width: 100%;
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(100, 60, 170, 0.15);
}

.tc-authCard--login {
  display: block;
  min-height: unset;
}

/* Title */

.tc-authTitle {
  font-size: 44px;
  margin: 0 0 10px;
}

.tc-authText {
  margin: 0 0 25px;
  color: #6b5d88;
}

/* =========================
   FORM
========================= */

#connexionGo {
  display: grid;
  gap: 14px;
}

#connexionGo label {
  font-weight: 700;
  margin-bottom: 4px;
}

/* Inputs */

#connexionGo input[type="email"],
#connexionGo input[type="password"] {
  height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(140, 100, 200, 0.15);
  padding: 0 16px;
  font-size: 1rem;
  background: rgba(255,255,255,0.9);
  outline: none;
  transition: 0.2s;
}

#connexionGo input:focus {
  border-color: #9f70ff;
  box-shadow: 0 0 0 4px rgba(159,112,255,0.12);
}

/* Checkbox */

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group label {
  font-weight: 500;
  color: #4b3a68;
}

/* Button */

.btn-connexion {
  height: 60px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #a56cff, #7d31f2);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 15px 35px rgba(120, 50, 255, 0.3);
  transition: 0.2s;
}

.btn-connexion:hover {
  transform: translateY(-2px);
}

/* Errors */

.erreurConnexion {
  color: #c63e5e;
  font-size: 0.9rem;
}

/* Links */

.tc-authLinks {
  margin-top: 20px;
  text-align: center;
  display: grid;
  gap: 10px;
}

.tc-authLinks a {
  color: #7b54cb;
  text-decoration: none;
}

.tc-authLinks a:hover {
  text-decoration: underline;
}

/* =========================
   BUTTON GENERIC
========================= */

.tc-authBtn--primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 55px;
  border-radius: 14px;
  background: linear-gradient(135deg, #a56cff, #7d31f2);
  color: white;
  text-decoration: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .tc-authShell--login {
    grid-template-columns: 1fr;
  }

  .tc-authCard--login {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .tc-authPage {
    padding: 20px;
  }

  .tc-socialHero,
  .tc-authCard {
    padding: 24px;
  }

  .tc-socialHero__stats {
    grid-template-columns: 1fr;
  }

  .tc-socialHero__title {
    font-size: 2.2rem;
  }
}