@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.auth-scene {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 90% 70% at 50% -10%, rgba(45, 27, 105, 0.85) 0%, transparent 65%),
              radial-gradient(ellipse 55% 45% at 85% 90%, rgba(245, 180, 0, 0.07) 0%, transparent 55%),
      #0D0820;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}

.auth-orb1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  top: -160px;
  left: -120px;
}

.auth-orb2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 180, 0, 0.1) 0%, transparent 70%);
  bottom: -100px;
  right: -80px;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(48px);
  -webkit-backdrop-filter: blur(48px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 26px;
  padding: 40px 36px 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.auth-brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #F5B400, #F1972A);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 20px rgba(245, 180, 0, 0.32), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  flex-shrink: 0;
}

.auth-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.auth-brand-name em {
  font-style: normal;
  color: #F5B400;
}

.auth-title {
  font-size: 27px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 28px;
  line-height: 1.5;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
  padding: 10px 14px;
  border-radius: 11px;
  font-size: 13px;
  margin-bottom: 18px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field label {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-field input {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  width: 100%;
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.auth-field input:focus {
  border-color: rgba(245, 180, 0, 0.5);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.1);
}

/* Menu déroulant (ex. type de professionnel) : même look que les champs, fond
   sombre + flèche personnalisée (le select natif blanc jurait avec le thème). */
.auth-field select {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  padding: 13px 42px 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #fff;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.auth-field select:focus {
  border-color: rgba(245, 180, 0, 0.5);
  background-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.1);
}
/* La liste ouverte est rendue par l'OS : on force un texte lisible (sombre). */
.auth-field select option { color: #17172B; }

/* Bloc des champs pro : empilés verticalement (il s'affiche en flex via le JS,
   donc on force la colonne + le même espacement que le reste du formulaire). */
#pro-fields { flex-direction: column; gap: 14px; }

.auth-btn {
  margin-top: 10px;
  width: 100%;
  padding: 15px 24px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(160deg, rgba(252, 196, 30, 0.95) 0%, rgba(241, 151, 42, 0.9) 100%);
  box-shadow: 0 10px 36px rgba(245, 180, 0, 0.38), 0 2px 0 rgba(255, 255, 255, 0.28) inset, 0 -2px 0 rgba(0, 0, 0, 0.15) inset, 0 0 0 1px rgba(245, 180, 0, 0.4);
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(245, 180, 0, 0.5), 0 2px 0 rgba(255, 255, 255, 0.3) inset, 0 -2px 0 rgba(0, 0, 0, 0.18) inset, 0 0 0 1px rgba(245, 180, 0, 0.5);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-foot {
  text-align: center;
  margin-top: 26px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.auth-foot a {
  color: #F5B400;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.15s;
}

.auth-foot a:hover {
  opacity: 0.8;
}

.auth-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-seg__opt {
  position: relative;
  cursor: pointer;
}

.auth-seg__opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.auth-seg__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.18s;
}

.auth-seg__opt input:checked + span {
  border-color: rgba(245, 180, 0, 0.6);
  background: rgba(245, 180, 0, 0.14);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.12);
}

body.auth-bare {
  background: #0D0820;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
}

body.auth-bare .top-nav {
  display: none;
}

body.auth-bare .bot-nav {
  display: none;
}

.auth-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 50%, transparent 100%);
  pointer-events: none;
}

.auth-btn::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: calc(50% - 1px);
  border-radius: 13px 13px 40px 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 100%);
  pointer-events: none;
}
