/* Telomando — pantalla de registro (compacto) */

.app-signup-page {
  min-height: 100vh;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2f7 48%, #e6ebf2 100%);
  display: flex;
  flex-direction: column;
}

.app-signup-main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem 0.75rem 1.5rem;
}

.app-signup-card {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.6rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.app-signup-card__header {
  padding: 0.75rem 1.1rem 0.7rem;
  text-align: center;
  border-bottom: 1px solid #eef2f6;
  background: linear-gradient(180deg, #fffdf7 0%, #fff 100%);
}

.app-signup-card__logo {
  margin-bottom: 0.35rem;
}

.app-signup-card__logo-img {
  max-height: 52px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.app-signup-card__title {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.app-signup-card__subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

.app-signup-card__body {
  padding: 0.75rem 1.1rem 1rem;
}

.app-signup-section {
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.7rem 0.15rem;
  border: 1px solid #eef2f6;
  border-radius: 0.45rem;
  background: #fbfcfe;
}

.app-signup-section__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #eef2f6;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.app-signup-section__title i {
  color: #d4a017;
  width: 0.95rem;
  text-align: center;
  font-size: 0.8rem;
}

.app-signup-field {
  margin-bottom: 0.5rem;
}

.app-signup-field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.app-signup-field .form-control,
.app-signup-field .select2-container .select2-selection--single {
  border: 1px solid #dbe3ee;
  border-radius: 0.35rem;
  min-height: 34px;
  height: 34px;
  font-size: 0.84rem;
  color: #0f172a;
  background: #fff;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.app-signup-field .form-control:focus {
  border-color: #f0b429;
  box-shadow: 0 0 0 0.12rem rgba(249, 208, 102, 0.3);
}

.app-signup-field .input-group-text {
  background: #f8fafc;
  border: 1px solid #dbe3ee;
  color: #64748b;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
}

.app-signup-field .form-text,
.app-signup-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

.app-signup-upload {
  position: relative;
  display: block;
  border: 1.5px dashed #d4a017;
  border-radius: 0.4rem;
  background: #fffdf5;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.app-signup-upload:hover {
  background: #fff8e6;
  border-color: #c4920f;
}

.app-signup-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.app-signup-upload__content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.app-signup-upload__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #111;
  color: #f9d066;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.app-signup-upload__text strong {
  display: block;
  font-size: 0.78rem;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.2;
}

.app-signup-upload__text span {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
}

.app-signup-upload.has-file {
  border-style: solid;
  background: #ecfdf5;
  border-color: #34d399;
}

.app-signup-upload.has-file .app-signup-upload__icon {
  background: #059669;
  color: #fff;
}

.app-signup-docgen__box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
  padding: 0.65rem 0.7rem 0.75rem;
  border-radius: 0.4rem;
  background: #fffdf5;
  border: 1.5px dashed #d4a017;
}

.app-signup-docgen__badge {
  display: inline-block;
  margin-bottom: 0.3rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #111;
  color: #f9d066;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-signup-docgen__title {
  margin: 0 0 0.2rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.app-signup-docgen__hint {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.4;
}

.app-signup-sign {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.app-signup-sign__label {
  margin: 0;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
}

.app-signup-sign__canvas {
  display: block;
  width: 100%;
  height: 140px;
  background: #fff;
  border: 1.5px dashed #d4a017;
  border-radius: 0.35rem;
  cursor: crosshair;
  touch-action: none;
}

.app-signup-sign__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.app-signup-sign__clear {
  border: 1px solid #d4a017;
  background: #fff;
  color: #7a5200;
  border-radius: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  cursor: pointer;
}

.app-signup-sign__clear:hover {
  background: #fff8e6;
}

.app-signup-sign__hint {
  color: #64748b;
  font-size: 0.7rem;
}

.app-signup-sign.is-signed .app-signup-sign__canvas {
  border-style: solid;
  border-color: #34d399;
  background: #ecfdf5;
}

.app-signup-sign.is-signed .app-signup-sign__hint {
  color: #065f46;
}

.app-signup-docgen__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  border: 0;
  border-radius: 0.4rem;
  background: linear-gradient(180deg, #f9d066 0%, #d4a017 100%);
  color: #111;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 0.62rem 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(212, 160, 23, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.app-signup-docgen__btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 6px 14px rgba(212, 160, 23, 0.38);
}

.app-signup-docgen__btn:active {
  transform: translateY(1px);
}

.app-signup-docgen__btn:disabled {
  cursor: wait;
  opacity: 0.75;
}

.app-signup-docgen__btn i {
  font-size: 0.95rem;
}

.app-signup-docgen__status {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #7a5200;
  font-size: 0.74rem;
  font-weight: 600;
}

.app-signup-docgen.is-generated .app-signup-docgen__box {
  background: #ecfdf5;
  border-style: solid;
  border-color: #34d399;
}

.app-signup-docgen.is-generated .app-signup-docgen__btn {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.28);
}

.app-signup-docgen.is-generated .app-signup-docgen__status {
  color: #065f46;
}

.app-signup-terms {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.15rem 0 0.65rem;
  padding: 0.55rem 0.7rem 0.55rem 1.15rem;
  border-radius: 0.4rem;
  background: #f8fafc;
  border: 1px solid #e9ecef;
}

.app-signup-terms .form-check-input {
  position: static;
  float: none;
  margin: 0 0 0 0.35rem;
  flex-shrink: 0;
}

.app-signup-terms label {
  margin: 0;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.3;
  text-align: left;
}

.app-signup-terms a {
  color: #b8860b;
  font-weight: 700;
  text-decoration: none;
}

.app-signup-terms a:hover {
  text-decoration: underline;
}

.app-signup-submit {
  width: 100%;
  border: 0;
  border-radius: 0.4rem;
  background: #111;
  color: #f9d066;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-signup-submit:hover {
  background: #222;
  color: #ffe28a;
}

.app-signup-login {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.app-signup-login a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.app-signup-success-card {
  max-width: 480px;
}

.app-signup-success-card__body {
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
}

.app-signup-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  font-size: 2rem;
}

.app-signup-success__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

.app-signup-success__message {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #475569;
}

.app-signup-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.app-signup-success__btn:hover {
  text-decoration: none;
  color: #ffe28a;
}

.app-signup-login a:hover {
  color: #b8860b;
}

.app-signup-alert {
  margin-bottom: 0.65rem;
}

.app-signup-page .select2-container {
  width: 100% !important;
}

.app-signup-page .select2-container .select2-selection--single {
  height: 34px !important;
  border: 1px solid #dbe3ee !important;
  border-radius: 0.35rem !important;
  display: flex;
  align-items: center;
}

.app-signup-page .select2-selection__rendered {
  line-height: 32px !important;
  padding-left: 0.6rem !important;
  color: #0f172a !important;
  font-size: 0.84rem !important;
}

.app-signup-page .select2-selection__arrow {
  height: 32px !important;
}

.app-signup-page .select2-container--default.select2-container--focus .select2-selection--single,
.app-signup-page .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #f0b429 !important;
}

.app-signup-page .iti {
  width: 100%;
}

.app-signup-page .iti__flag-container {
  z-index: 2;
}

.app-signup-page .iti input.form-control {
  height: 34px;
  min-height: 34px;
}

.app-signup-page #error-msg.hide,
.app-signup-page #valid-msg.hide {
  display: none;
}

.app-signup-page #preloader {
  display: none !important;
}

.app-signup-page .app-login-footer {
  padding: 0.65rem 1rem;
  font-size: 0.8rem;
}

.signup-alert-popup {
  border-radius: 0.7rem !important;
  padding: 0.85rem 1.1rem 1rem !important;
  max-width: 420px !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16) !important;
  border: 1px solid #e8eef4;
}

.signup-alert-icon {
  width: 2.1rem !important;
  height: 2.1rem !important;
  min-width: 2.1rem !important;
  border-width: 2px !important;
  border-color: rgba(212, 160, 23, 0.35) !important;
  margin: 0.15rem auto 0.35rem !important;
}

.signup-alert-icon .swal2-icon-content {
  font-size: 1.15rem !important;
}

.signup-alert-title {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em;
}

.signup-alert-html {
  margin: 0.35rem 0 0 !important;
  padding: 0 !important;
}

.signup-alert__lead {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #64748b;
  text-align: left;
}

.signup-alert__list {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.65rem;
  max-height: 280px;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 0.5rem;
  text-align: left;
}

.signup-alert__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.38rem 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  border-bottom: 1px solid #eef2f6;
}

.signup-alert__list li:last-child {
  border-bottom: 0;
}

.signup-alert__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4a017;
  flex-shrink: 0;
}

.signup-alert-btn {
  background: linear-gradient(180deg, #f9d066 0%, #d4a017 100%) !important;
  color: #111 !important;
  font-weight: 800 !important;
  font-size: 0.86rem !important;
  border: 0 !important;
  border-radius: 0.4rem !important;
  padding: 0.55rem 1.4rem !important;
  box-shadow: 0 4px 10px rgba(212, 160, 23, 0.28) !important;
}

.signup-alert-btn:hover {
  filter: brightness(1.04);
}

@media (max-width: 575.98px) {
  .app-signup-card__body,
  .app-signup-card__header {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .app-signup-section {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
}
