/* Signe auth — merged from signe-login / signe-registro / signe-reset-password */
body.signe-auth .signe-auth-shell, body.signe-auth .signe-auth-shell * { box-sizing: border-box; }

    :root {
      --navy:       #0B1829;
      --navy-mid:   #112035;
      --navy-card:  #152843;
      --teal:       #00C896;
      --teal-dark:  #00A87C;
      --teal-glow:  rgba(0, 200, 150, 0.15);
      --slate:      #8FA5BE;
      --slate-dim:  #4A6480;
      --white:      #FFFFFF;
      --off-white:  #EDF2F7;
      --text-main:  #E8F0F9;
      --text-muted: #8FA5BE;
      --border:     rgba(255,255,255,0.08);
      --input-bg:   rgba(255,255,255,0.05);
      --input-border: rgba(255,255,255,0.12);
      --input-focus: rgba(0,200,150,0.5);
      --radius-sm:  8px;
      --radius-md:  12px;
      --radius-lg:  20px;
      --font:       'Plus Jakarta Sans', sans-serif;
    }

    html:has(body.signe-auth) { height: 100%; }
    body.signe-auth {
      height: 100%;
      min-height: 100vh;
      font-family: var(--font);
      background: var(--navy);
      color: var(--text-main);
      -webkit-font-smoothing: antialiased;
    }

    .page {
      display: grid;
      grid-template-columns: 1fr 1fr;
      min-height: 100vh;
    }

    /* ── LEFT PANEL ── */
    .panel-left {
      background: var(--navy-mid);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 48px 56px;
      position: relative;
      overflow: hidden;
      border-right: 1px solid var(--border);
    }

    /* decorative background circles */
    .panel-left::before,
    .panel-left::after {
      content: '';
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
    }
    .panel-left::before {
      width: 480px; height: 480px;
      background: radial-gradient(circle, rgba(0,200,150,0.12) 0%, transparent 70%);
      top: -100px; left: -100px;
    }
    .panel-left::after {
      width: 340px; height: 340px;
      background: radial-gradient(circle, rgba(0,80,200,0.10) 0%, transparent 70%);
      bottom: -80px; right: -60px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      position: relative;
      z-index: 1;
    }

    .brand-mark {
      width: 40px; height: 40px;
      background: var(--navy-mid);
      border: 1px solid var(--border);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
    }

    .brand-mark--compact {
      width: 34px !important;
      height: 34px !important;
      border-radius: 8px !important;
    }

    .brand-mark-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      border-radius: inherit;
    }

    .brand-mark svg { width: 22px; height: 22px; }

    .brand-name {
      font-size: 22px;
      font-weight: 700;
      color: var(--white);
      letter-spacing: -0.3px;
    }

    .hero {
      position: relative;
      z-index: 1;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 40px 0;
    }

    .hero-eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 1.4px;
      text-transform: uppercase;
      color: var(--teal);
      margin-bottom: 20px;
    }
    .hero-eyebrow span.dot {
      width: 6px; height: 6px;
      background: var(--teal);
      border-radius: 50%;
      display: inline-block;
    }

    .hero-title {
      font-size: 40px;
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -0.8px;
      color: var(--white);
      margin-bottom: 18px;
    }
    .hero-title .accent { color: var(--teal); }

    .hero-desc {
      font-size: 15px;
      color: var(--text-muted);
      line-height: 1.7;
      max-width: 380px;
      margin-bottom: 40px;
    }

    .feature-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .feature-list li {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 14px;
      color: var(--text-muted);
    }

    .feature-list li .check {
      width: 20px; height: 20px;
      border-radius: 50%;
      background: var(--teal-glow);
      border: 1px solid var(--teal);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .feature-list li .check svg { width: 10px; height: 10px; }

    /* document illustration */
    .illustration {
      position: relative;
      z-index: 1;
      display: flex;
      gap: 12px;
      align-items: flex-end;
      margin-top: 40px;
    }

    .doc-card {
      background: var(--navy-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 16px;
      width: 160px;
    }
    .doc-card-sm { width: 130px; opacity: 0.6; transform: translateY(10px); }

    .doc-lines { display: flex; flex-direction: column; gap: 6px; }
    .doc-line {
      height: 6px;
      border-radius: 3px;
      background: rgba(255,255,255,0.1);
    }
    .doc-line.short { width: 60%; }
    .doc-line.teal { background: var(--teal); width: 40%; }
    .doc-sig {
      margin-top: 14px;
      border-top: 1px solid var(--border);
      padding-top: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 11px;
      color: var(--teal);
      font-weight: 600;
    }

    .panel-left-footer {
      position: relative;
      z-index: 1;
      font-size: 12px;
      color: var(--slate-dim);
    }

    /* ── RIGHT PANEL ── */
    .panel-right {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 56px;
      background: var(--navy);
    }

    .form-container {
      width: 100%;
      max-width: 420px;
    }

    .form-header {
      margin-bottom: 36px;
    }

    .form-header h1 {
      font-size: 28px;
      font-weight: 700;
      color: var(--white);
      letter-spacing: -0.4px;
      margin-bottom: 8px;
    }

    .form-header p {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.6;
    }

    .nav-bar-mobile {
      display: none;
      margin-bottom: 32px;
    }

    /* ── FORM FIELDS ── */
    .field {
      margin-bottom: 18px;
    }

    .field label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      margin-bottom: 8px;
      letter-spacing: 0.1px;
    }

    .field input {
      width: 100%;
      height: 48px;
      background: var(--input-bg);
      border: 1px solid var(--input-border);
      border-radius: var(--radius-sm);
      padding: 0 16px;
      font-family: var(--font);
      font-size: 15px;
      color: var(--white);
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    }

    .field input::placeholder { color: var(--slate-dim); font-size: 14px; }

    .field input:hover {
      border-color: rgba(255,255,255,0.2);
      background: rgba(255,255,255,0.07);
    }

    .field input:focus {
      border-color: var(--teal);
      box-shadow: 0 0 0 3px var(--input-focus);
      background: rgba(0,200,150,0.04);
    }

    .field-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 24px;
      margin-top: -4px;
    }

    .checkbox-label {
      display: flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      font-size: 13px;
      color: var(--text-muted);
      user-select: none;
    }

    .checkbox-label input[type="checkbox"] {
      width: 17px; height: 17px;
      accent-color: var(--teal);
      cursor: pointer;
      border-radius: 4px;
    }

    .forgot-link {
      font-size: 13px;
      color: var(--teal);
      text-decoration: none;
      font-weight: 500;
    }
    .forgot-link:hover { text-decoration: underline; }

    /* ── PRIMARY BUTTON ── */
    .btn-primary {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      height: 50px;
      background: var(--teal);
      color: var(--navy);
      font-family: var(--font);
      font-size: 15px;
      font-weight: 700;
      border: none;
      border-radius: var(--radius-sm);
      cursor: pointer;
      letter-spacing: 0.1px;
      transition: background 0.2s, transform 0.1s;
      margin-bottom: 16px;
    }
    .btn-primary:hover { background: var(--teal-dark); }
    .btn-primary:active { transform: scale(0.99); }
    .btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }

    /* ── DIVIDER ── */
    .divider {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 20px 0;
    }
    .divider span {
      font-size: 12px;
      color: var(--slate-dim);
      white-space: nowrap;
    }
    .divider-line {
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* ── GOOGLE BUTTON ── */
    .btn-google {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: 100%;
      height: 48px;
      background: transparent;
      border: 1px solid var(--input-border);
      border-radius: var(--radius-sm);
      font-family: var(--font);
      font-size: 14px;
      font-weight: 500;
      color: var(--text-main);
      text-decoration: none;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
    }
    .btn-google:hover {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.2);
    }
    .btn-google svg { width: 18px; height: 18px; }

    /* ── FOOTER LINKS ── */
    .form-footer {
      margin-top: 28px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      text-align: center;
    }

    .form-footer p {
      font-size: 13px;
      color: var(--text-muted);
    }

    .form-footer a {
      color: var(--teal);
      text-decoration: none;
      font-weight: 600;
    }
    .form-footer a:hover { text-decoration: underline; }

    /* ── NAV inside right panel (top bar) ── */
    .top-nav {
      display: none;
    }

    /* ── PAGE-LEVEL NAV (top of full page) ── */
    .page-nav {
      display: none;
    }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .page { grid-template-columns: 1fr; }
      .panel-left { display: none; }
      .panel-right { padding: 40px 24px; }
      .form-container { max-width: 420px; }
      .nav-bar-mobile { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
      .brand-name { font-size: 20px; }
    }


    /* registro: two-column fields + strength + tos */
    .field-row-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 0;
    }
    .field label .required { color: var(--teal); margin-left: 2px; }
    .strength-bar { display: flex; gap: 4px; margin-top: 8px; }
    .strength-seg {
      flex: 1;
      height: 3px;
      border-radius: 2px;
      background: rgba(255,255,255,0.1);
      transition: background 0.3s;
    }
    .strength-hint { font-size: 11px; color: var(--slate-dim); margin-top: 5px; }
    .tos-notice {
      font-size: 12px;
      color: var(--slate-dim);
      line-height: 1.6;
      margin-bottom: 18px;
      padding: 12px 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
    }
    .tos-notice a { color: var(--teal); text-decoration: none; }
    .tos-notice a:hover { text-decoration: underline; }
    .steps { display: flex; flex-direction: column; gap: 0; }
    .steps .step {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding-bottom: 28px;
      position: relative;
    }
    .steps .step:not(:last-child)::after {
      content: '';
      position: absolute;
      left: 15px;
      top: 32px;
      width: 1px;
      height: calc(100% - 16px);
      background: linear-gradient(to bottom, var(--teal), transparent);
      opacity: 0.3;
    }
    .step-num {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: var(--teal-glow);
      border: 1px solid var(--teal);
      display: flex; align-items: center; justify-content: center;
      font-size: 13px;
      font-weight: 700;
      color: var(--teal);
      flex-shrink: 0;
    }
    .step-body h4 { font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
    .step-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
    .mini-cards { display: flex; gap: 10px; margin-top: 32px; }
    .mini-card {
      background: var(--navy-card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12px;
      font-weight: 500;
      color: var(--text-muted);
    }
    .mini-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }

    /* password reset request panel */
    .how-it-works { display: flex; flex-direction: column; gap: 0; }
    .how-it-works .step {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding-bottom: 26px;
      position: relative;
    }
    .how-it-works .step:not(:last-child)::after {
      content: '';
      position: absolute;
      left: 15px;
      top: 34px;
      width: 1px;
      height: calc(100% - 18px);
      background: linear-gradient(to bottom, rgba(0,200,150,0.4), transparent);
    }
    .step-icon {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: var(--teal-glow);
      border: 1px solid var(--teal);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .step-icon svg { width: 14px; height: 14px; }
    .security-badge {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 36px;
      padding: 12px 16px;
      background: rgba(0,200,150,0.06);
      border: 1px solid rgba(0,200,150,0.2);
      border-radius: var(--radius-md);
      max-width: fit-content;
    }
    .security-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
    .security-badge-text { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
    .security-badge-text strong {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--teal);
      margin-bottom: 1px;
    }
    .icon-wrap {
      width: 56px; height: 56px;
      background: var(--teal-glow);
      border: 1px solid rgba(0,200,150,0.3);
      border-radius: 16px;
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 24px;
    }
    .icon-wrap svg { width: 26px; height: 26px; }
    .info-note {
      margin-top: 16px;
      padding: 12px 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 12px;
      color: var(--slate-dim);
      line-height: 1.6;
      display: flex;
      gap: 10px;
      align-items: flex-start;
    }
    .info-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }
    .back-link {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 28px;
      font-size: 14px;
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.2s;
      font-weight: 500;
    }
    .back-link:hover { color: var(--teal); }
    .back-link svg { width: 16px; height: 16px; transition: transform 0.2s; }
    .back-link:hover svg { transform: translateX(-3px); }
    .divider-text {
      display: flex;
      align-items: center;
      gap: 14px;
      margin: 24px 0 20px;
    }
    .divider-text span {
      font-size: 12px;
      color: var(--slate-dim);
      white-space: nowrap;
    }
    .quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .quick-link-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      height: 44px;
      background: transparent;
      border: 1px solid var(--input-border);
      border-radius: var(--radius-sm);
      font-family: var(--font);
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      text-decoration: none;
      transition: background 0.2s, border-color 0.2s, color 0.2s;
    }
    .quick-link-btn:hover {
      background: rgba(255,255,255,0.05);
      border-color: rgba(255,255,255,0.2);
      color: var(--text-main);
    }
    .quick-link-btn svg { width: 14px; height: 14px; }
    .success-state { display: none; text-align: center; }
    .success-icon {
      width: 64px; height: 64px;
      background: var(--teal-glow);
      border: 1px solid var(--teal);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 24px;
    }
    .success-icon svg { width: 28px; height: 28px; }
    .success-state h2 {
      font-size: 24px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 12px;
      letter-spacing: -0.3px;
    }
    .success-state p {
      font-size: 14px;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 32px;
    }
    .success-state p strong { color: var(--teal); font-weight: 600; }

    .signe-auth-flash { margin-bottom: 20px; }
    .signe-auth-flash .grid { margin-left: 0 !important; margin-right: 0 !important; }
    .signe-auth-flash .alert { max-width: 100%; justify-self: stretch !important; width: 100% !important; margin: 0 !important; }
    .field.field-error input { border-color: #E24B4A; box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.25); }
    .signe-field-error-msg { font-size: 12px; color: #E24B4A; margin-top: 6px; }

    .signe-client-error {
      font-size: 13px;
      line-height: 1.45;
      color: #F0B4B4;
      margin-top: 10px;
      padding: 10px 12px;
      background: rgba(226, 75, 74, 0.12);
      border: 1px solid rgba(226, 75, 74, 0.4);
      border-radius: var(--radius-sm);
      border-left: 3px solid #E24B4A;
    }

    .field.signe-has-client-error input {
      border-color: rgba(226, 75, 74, 0.85) !important;
      box-shadow: 0 0 0 3px rgba(226, 75, 74, 0.2) !important;
    }