/* Suite Partner — auth split layout (plein écran) */

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

.auth-page {
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

.auth-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 44%) 1fr;
  background: #fff;
  overflow: hidden;
}

.auth-shell--login {
  grid-template-columns: minmax(360px, 46%) 1fr;
}

.auth-brand {
  position: relative;
  background: linear-gradient(180deg, #5b9fff 0%, #3d6ff5 55%, #3563e0 100%);
  color: #fff;
  padding: 48px 56px 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  overflow: hidden;
  z-index: 2;
  /* Bombage : grands coins droits → courbe continue qui avance dans le blanc */
  border-top-right-radius: 50% 50%;
  border-bottom-right-radius: 50% 50%;
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.auth-brand-eyebrow {
  margin: 0 0 22px;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.95;
}

.auth-brand-logo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.auth-brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.auth-brand-name {
  margin: 0 0 20px;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.auth-brand-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 300px;
}

.auth-brand-links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-brand-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
}

.auth-brand-links a:hover {
  text-decoration: underline;
  background: none;
}

.auth-brand-links span {
  display: inline;
  opacity: 0.55;
}

.auth-brand-mark {
  display: contents;
}

.auth-panel {
  position: relative;
  padding: 48px 64px 48px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  min-height: 100vh;
  overflow: hidden;
  z-index: 1;
}

/* Déco zone blanche — simple, propre, pro */
.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle 118px at 96% 94%, #e8effc 0%, #e8effc 71%, transparent 72%),
    radial-gradient(circle 74px at 83% 97%, #dce6fa 0%, #dce6fa 71%, transparent 72%),
    radial-gradient(circle 48px at 91% 80%, #f2f6fc 0%, #f2f6fc 71%, transparent 72%),
    radial-gradient(circle 56px at 97% 7%, #eef3fb 0%, #eef3fb 71%, transparent 72%),
    radial-gradient(circle 32px at 88% 13%, #e4ecf8 0%, #e4ecf8 71%, transparent 72%);
}

.auth-panel::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 200px;
  height: 160px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: radial-gradient(circle, #3d6ff5 1.1px, transparent 1.2px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 80% 80%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 65% at 80% 80%, #000 10%, transparent 70%);
}

.auth-panel-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.auth-panel-title {
  margin: 0 0 22px;
  font-size: 1.55rem;
  font-weight: 600;
  color: #1a1d2b;
  letter-spacing: -0.02em;
}

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

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #2a2e3d;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  border: none;
  outline: none;
  background: #f1f3f8;
  border-radius: 10px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.94rem;
  color: #1a1d2b;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  background: #eaf0ff;
  box-shadow: inset 0 0 0 1.5px #3d6ff5;
}

.auth-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666a7a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}

.auth-field textarea {
  resize: vertical;
  min-height: 72px;
}

.auth-field--full {
  grid-column: 1 / -1;
}

.auth-cgu {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #4a4f61;
  cursor: pointer;
}

.auth-cgu input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #3d6ff5;
  flex-shrink: 0;
}

.auth-submit {
  margin-top: 6px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  background: #3d6ff5;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover {
  background: #2f5de0;
}

.auth-submit--ghost {
  background: #eef2fb;
  color: #3d6ff5;
}

.auth-submit--ghost:hover {
  background: #e2e9fb;
}

.auth-help-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #6a7084;
}

.auth-divider {
  margin: 22px 0;
  border: none;
  border-top: 1px solid #e6e8ef;
}

.auth-footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6a7084;
}

.auth-footer a {
  color: #3d6ff5;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-footer--split {
  margin-top: 10px;
  margin-bottom: 0;
  text-align: right;
}

.auth-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.auth-alert-error {
  background: #fde8e8;
  color: #9b1c1c;
}

.auth-alert-success {
  background: #e7f8ec;
  color: #1f6b36;
}

.auth-alert--prominent {
  padding: 16px 18px;
  border: 1px solid #8fd4a4;
  box-shadow: 0 8px 24px rgba(31, 107, 54, 0.08);
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-alert--prominent strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

.auth-alert--prominent p {
  margin: 0;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap input {
  padding-right: 44px;
}

.auth-password-wrap .password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6a7084;
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
}

@media (max-width: 900px) {
  .auth-shell,
  .auth-shell--login {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: auto;
    padding: 40px 24px;
    border-radius: 0;
  }

  .auth-panel {
    min-height: auto;
    padding: 32px 22px 40px;
  }

  .auth-panel::before,
  .auth-panel::after {
    display: none;
  }

  .auth-grid-2 {
    grid-template-columns: 1fr;
  }
}
