/* ==========================================================================
   SR Editer — Connexion / inscription (login.html)
   ========================================================================== */

.aww-auth-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  z-index: 10;
}
.aww-auth-container {
  width: 100%;
  max-width: 440px;
  padding: 2.75rem 2.5rem;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: rgba(10, 10, 15, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}
.aww-auth-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  text-align: left;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.aww-auth-subtitle {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.75rem;
  text-align: left;
  line-height: 1.45;
}

/* ── Connexion OAuth (Discord…) ── */
.auth-social-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.auth-discord-btn:hover:not(:disabled) {
  background: rgba(88, 101, 242, 0.2);
  border-color: rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}
.auth-social-btn--disabled,
.auth-social-btn--disabled:disabled {
  opacity: 0.38;
  cursor: not-allowed !important;
  filter: grayscale(70%);
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
  transform: none !important;
}
.auth-discord-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* Séparateur "ou" */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
  color: rgba(148, 163, 184, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.auth-divider span {
  padding: 0 12px;
}

/* ── Formulaire ── */
.aww-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-input-wrapper .aww-input {
  padding-right: 44px;
}
.password-input-wrapper .aww-input::-ms-reveal,
.password-input-wrapper .aww-input::-ms-clear {
  display: none;
}
.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease;
}
.password-toggle-btn:hover {
  color: #ffffff;
}
.aww-auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
}
.aww-auth-success {
  color: var(--accent);
  text-align: center;
  margin-top: 1rem;
}
.aww-text-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-left: 4px;
  text-decoration: underline;
  transition: color 0.2s;
}
.aww-text-btn:hover {
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .aww-auth-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .aww-auth-container {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .aww-auth-section {
    padding: 5rem 1rem 3rem !important;
  }
  .aww-auth-container {
    padding: 2rem 1.25rem !important;
    border-radius: 20px !important;
  }
  .aww-auth-title {
    font-size: 1.65rem !important;
  }
  .auth-social-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .auth-social-btn {
    width: 100% !important;
    padding: 11px 14px !important;
  }
}
