/* ╔══════════════════════════════════════════════════════════════╗
 *    ║  signup.css — Inowings Desk : page d'inscription            ║
 *       ║  Chemin : /var/www/proino/assets/css/signup.css             ║
 *          ╚══════════════════════════════════════════════════════════════╝ */

/* ─── Tokens (cohérents avec login.php / dashboard) ─── */
:root {
  --bg:       #F8FAFC;
  --bg-dark:  #070C18;
  --surface:  #FFFFFF;
  --card:     #F1F5F9;
  --border:   #E2E8F0;
  --text:     #0F172A;
  --text2:    #475569;
  --text3:    #94A3B8;
  --accent:   #3B82F6;
  --accent-h: #2563EB;
  --teal:     #14B8A6;
  --green:    #16A34A;
  --green-bg: #DCFCE7;
  --danger:   #DC2626;
  --danger-bg:#FEE2E2;
  --warn:     #D97706;
  --warn-bg:  #FEF3C7;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px;
  --shadow: 0 4px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*
* html, body {
*   font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
*     background: var(--bg);
*       color: var(--text);
*         font-size: 15px;
*           line-height: 1.5;
*             -webkit-font-smoothing: antialiased;
*               min-height: 100vh;
*               }
*
*               a { color: var(--accent); text-decoration: none; }
*               a:hover { color: var(--accent-h); text-decoration: underline; }
*
*/* ─── Layout 2 colonnes ─── */
.su-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 960px) {
  .su-shell { grid-template-columns: 1fr; }
}

/* ─── Hero gauche ─── */
.su-hero {
  background: var(--bg-dark);
  color: #EDF2FF;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.su-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(59,130,246,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(20,184,166,.12) 0%, transparent 60%);
  pointer-events: none;
}
.su-hero-inner { position: relative; max-width: 480px; }

.su-brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 56px; color: #fff;
}
.su-brand:hover { text-decoration: none; }
.su-brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
.su-brand strong { display: block; font-family: 'Lato', sans-serif; font-size: 19px; font-weight: 700; }
.su-brand em { font-style: normal; font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); font-weight: 600; }

.su-headline {
  font-family: 'Lato', sans-serif;
  font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -1.2px;
  margin-bottom: 20px;
}
.su-grad {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; color: transparent;
}

.su-subline { font-size: 16px; color: #94A3B8; margin-bottom: 36px; line-height: 1.6; }

.su-feats { list-style: none; margin-bottom: 44px; }
.su-feats li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 0;
}
.su-feats li > span {
  flex-shrink: 0; width: 36px; height: 36px;
  background: rgba(59,130,246,.12); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.su-feats li > div { font-size: 14px; color: #CBD5E1; line-height: 1.45; }
.su-feats li > div strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

.su-trust { font-size: 14px; color: #94A3B8; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); }
.su-trust a { color: #fff; font-weight: 500; }

/* ─── Wizard droite ─── */
.su-main {
  padding: 40px 48px;
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg);
}
@media (max-width: 640px) { .su-main { padding: 24px 18px; } }

.su-wizard {
  width: 100%; max-width: 520px;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 36px 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
@media (max-width: 640px) { .su-wizard { padding: 24px 20px; border-radius: var(--r-md); } }

.su-noscript {
  background: var(--warn-bg); color: var(--warn);
  padding: 14px 18px; border-radius: var(--r-sm);
  margin-bottom: 20px; font-size: 14px;
  border: 1px solid #FCD34D;
}

/* ─── Stepper ─── */
.su-steps {
  list-style: none; display: flex; justify-content: space-between;
  margin-bottom: 32px; position: relative;
}
.su-steps::before {
  content: ''; position: absolute;
  top: 14px; left: 14px; right: 14px; height: 2px;
  background: var(--border); z-index: 0;
}
.su-steps li {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative; z-index: 1;
  font-size: 11px; color: var(--text3);
  font-weight: 600; text-transform: uppercase; letter-spacing: .4px;
}
.su-steps li i {
  font-style: normal; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 50%; font-weight: 700; font-size: 13px;
  color: var(--text3); margin-bottom: 6px;
  transition: all .25s ease;
}
.su-steps li.active i {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.su-steps li.done i {
  background: var(--green); border-color: var(--green); color: #fff;
}
.su-steps li.done i::before { content: '✓'; }
.su-steps li.done i { font-size: 0; }
.su-steps li.done i::before { font-size: 14px; }
.su-steps li.active span, .su-steps li.done span { color: var(--text); }

/* ─── Toast global ─── */
.su-toast {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .25s ease;
}
.su-toast.error   { background: var(--danger-bg); color: var(--danger); border: 1px solid #FECACA; }
.su-toast.success { background: var(--green-bg);  color: var(--green);  border: 1px solid #BBF7D0; }
.su-toast.info    { background: #DBEAFE;          color: #1E40AF;       border: 1px solid #BFDBFE; }
.su-toast.warn    { background: var(--warn-bg);   color: var(--warn);   border: 1px solid #FDE68A; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ─── Étapes ─── */
.su-step header { margin-bottom: 26px; }
.su-step h2 { font-family: 'Lato', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 6px; }
.su-step header p { color: var(--text2); font-size: 14px; line-height: 1.55; }
.highlight { color: var(--accent); font-weight: 600; }

/* ─── Champs de formulaire ─── */
.field { margin-bottom: 18px; position: relative; }
.field label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 600; color: var(--text);
  margin-bottom: 6px;
}
.counter { font-weight: 400; color: var(--text3); font-size: 11px; }

.field input[type=text], .field input[type=email], .field input[type=tel],
.field input[type=url], .field input[type=password] {
  width: 100%; padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text); font-size: 14px;
  font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.field input::placeholder { color: var(--text3); }
.field input[aria-invalid="true"] {
  border-color: var(--danger);
  background: #FFFBFB;
}
.field input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,.15);
}

.field .hint { display: block; color: var(--text3); font-size: 12px; margin-top: 6px; line-height: 1.45; }
.field .hint code { background: var(--card); padding: 1px 6px; border-radius: 4px; font-size: 11.5px; }
.field .err {
  display: block; color: var(--danger); font-size: 12.5px;
  margin-top: 6px; min-height: 0; transition: min-height .2s;
}
.field .err:not(:empty) { min-height: 18px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 14px; }
@media (max-width: 480px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 16px 6px;
  margin-bottom: 18px;
}
.fieldset legend {
  padding: 0 8px; font-size: 12px; font-weight: 600;
  color: var(--text2); text-transform: uppercase; letter-spacing: .5px;
}

/* ─── Senderid : input avec status d'unicité ─── */
.input-with-status { position: relative; }
.input-with-status input { padding-right: 90px; }
.input-status {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.input-status.checking { color: var(--text3); }
.input-status.ok       { color: var(--green); }
.input-status.ko       { color: var(--danger); }

/* ─── OTP ─── */
.otp-block { margin-bottom: 22px; }
.otp-block label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.otp-input {
  width: 100%; max-width: 280px;
  padding: 16px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 28px; font-weight: 700; letter-spacing: 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--card); color: var(--text);
  outline: none; transition: all .15s;
}
.otp-input:focus {
  border-color: var(--accent); background: #fff;
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.otp-input.invalid {
  border-color: var(--danger); background: #FFF5F5;
  animation: shake .35s;
}
.otp-input.valid { border-color: var(--green); background: #F0FDF4; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-6px); }
  40%,80% { transform: translateX(6px); }
}

.otp-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12.5px; color: var(--text2);
  margin: 8px 0 16px;
}

/* ─── Boutons ─── */
.actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; gap: 12px; flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--r-sm);
  padding: 12px 24px;
  font-size: 14.5px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(59,130,246,.28);
  min-height: 44px;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-h);
  box-shadow: 0 6px 20px rgba(59,130,246,.36);
}
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { background: #94A3B8; box-shadow: none; cursor: not-allowed; }
.btn-primary.btn-large { padding: 14px 32px; font-size: 16px; min-height: 50px; }

.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 18px;
  font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.btn-ghost:hover { background: var(--card); color: var(--text); }

.btn-link {
  background: none; border: none; padding: 4px 0;
  color: var(--accent); cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 500;
}
.btn-link:hover { text-decoration: underline; color: var(--accent-h); }
.btn-link:disabled { color: var(--text3); cursor: not-allowed; text-decoration: none; }

/* Spinner */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Étape succès ─── */
.success-block { text-align: center; padding: 12px 0; }
.success-icon { display: flex; justify-content: center; margin-bottom: 18px; }
.success-block h2 { font-family: 'Lato', sans-serif; font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.success-lead { color: var(--text2); font-size: 15px; margin-bottom: 24px; }

.success-card {
  background: var(--card); border-radius: var(--r-md);
  padding: 22px; text-align: left;
  margin-bottom: 26px;
  border: 1px solid var(--border);
}
.success-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.success-card ul { list-style: none; margin-bottom: 14px; }
.success-card ul li {
  padding: 8px 0 8px 22px;
  position: relative;
  font-size: 13.5px; line-height: 1.5;
  color: var(--text2);
}
.success-card ul li::before {
  content: '✓'; position: absolute; left: 0; top: 8px;
  color: var(--green); font-weight: 700;
}
.success-hint { font-size: 12.5px; color: var(--text3); padding-top: 12px; border-top: 1px solid var(--border); }

/* ─── Footer ─── */
.su-footer {
  margin-top: 24px; padding: 12px;
  font-size: 12px; color: var(--text3); text-align: center;
}
.su-footer a { color: var(--text3); }
.su-footer a:hover { color: var(--accent); }
