/* Stenko theme — fully custom form rendering. */

:root {
  --ds-navy: #2d3748;
  --ds-navy-dark: #1a202c;
  --ds-cyan: #4fd1c7;
  --ds-cyan-dark: #3bafa6;
  --ds-cyan-light: rgba(79, 209, 199, 0.1);
  --ds-gray-light: #f6f8fb;
  --ds-gray-medium: #4a5568;
  --ds-gray-placeholder: #a0aec0;
  --ds-gray-border: #e2e8f0;
  --ds-danger: #f56565;
  --ds-danger-light: rgba(245, 101, 101, 0.1);
  --ds-success: #48bb78;
  --ds-success-light: rgba(72, 187, 120, 0.1);

  --ds-radius-md: 12px;
  --ds-radius-lg: 16px;
  --ds-radius-xl: 24px;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--ds-navy);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ds-navy);
  -webkit-font-smoothing: antialiased;
}

main[data-testid="app-express"] {
  min-height: 100vh;
  display: block;
  padding: 0;
  background: transparent;
}

.auth-container {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--ds-navy);
}

/* Lien "Mot de passe oublié" SOUS le submit, dans la card */
.helix-below-submit {
  text-align: center;
  margin-top: 4px;
}

.helix-below-submit a {
  color: var(--ds-cyan-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.helix-below-submit a:hover {
  color: var(--ds-cyan);
}

/* Header navy avec logo + titre + sous-titre */
.helix-brand-header {
  padding: 40px 24px 32px;
  text-align: center;
  color: #fff;
}

.helix-brand-header img {
  max-height: 56px;
  max-width: 120px;
  margin-bottom: 20px;
}

.helix-brand-header .helix-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #fff;
}

.helix-brand-header .helix-subtitle {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Card blanche arrondie — largeur limitée avec marges latérales */
.helix-form {
  background: #fff;
  border-radius: var(--ds-radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 24px;
  max-width: 440px;
  width: calc(100% - 48px);
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  align-self: center;
}

.helix-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.helix-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ds-navy);
}

/* Astérisque discret en cyan */
.helix-required {
  color: var(--ds-cyan);
  font-weight: 700;
}

/* Input container pour les icones */
.helix-input-wrap {
  position: relative;
}

.helix-input-wrap .helix-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--ds-gray-placeholder);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.helix-input-wrap .helix-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.helix-form input[type="text"],
.helix-form input[type="email"],
.helix-form input[type="password"],
.helix-form input[type="tel"],
.helix-form input[type="number"] {
  width: 100%;
  padding: 14px 14px;
  border: 1.5px solid var(--ds-gray-border);
  border-radius: var(--ds-radius-lg);
  font-size: 15px;
  font-family: inherit;
  color: var(--ds-navy);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.helix-input-wrap input {
  padding-left: 44px !important;
}

.helix-form input::placeholder {
  color: var(--ds-gray-placeholder);
  font-weight: 400;
}

.helix-form input:focus {
  outline: none;
  border-color: var(--ds-cyan);
  box-shadow: 0 0 0 3px var(--ds-cyan-light);
}

/* Bouton submit navy pill */
.helix-submit {
  background: var(--ds-navy) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 32px !important;
  border-radius: 999px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
  width: 100%;
}

.helix-submit:hover {
  background: var(--ds-navy-dark) !important;
  transform: translateY(-1px);
}

.helix-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.helix-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ds-navy);
  cursor: pointer;
}

.helix-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--ds-cyan);
}

.helix-link {
  color: var(--ds-navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  align-self: flex-start;
}

.helix-link:hover {
  color: var(--ds-cyan-dark);
}

.helix-message {
  padding: 10px 14px;
  border-radius: var(--ds-radius-md);
  font-size: 14px;
  margin: 0;
}

.helix-message-error,
.helix-message[data-type="error"] {
  color: var(--ds-danger);
  background: var(--ds-danger-light);
}

.helix-message-success,
.helix-message[data-type="success"] {
  color: var(--ds-success);
  background: var(--ds-success-light);
}

.helix-message-info,
.helix-message[data-type="info"] {
  color: var(--ds-navy);
  background: var(--ds-gray-light);
}

.helix-text {
  color: var(--ds-gray-medium);
  font-size: 14px;
}

/* Liens extra — poussés au bas de l'écran sur mobile */
.helix-extra-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-top: auto;
  padding: 32px 24px 20px;
}

.helix-extra-links a {
  color: var(--ds-cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

.helix-extra-links a:hover {
  color: var(--ds-cyan-dark);
}

/* Desktop */
@media (min-width: 768px) {
  .helix-brand-header {
    padding: 80px 24px 40px;
  }

  .helix-form {
    padding: 40px;
    margin: 0 auto;
    max-width: 440px;
    width: 100%;
  }

  .helix-extra-links {
    margin-top: auto;
    padding-bottom: 32px;
  }
}
