/* ============================================================
   NeoLabQC Auth — estilos de registro, inicio de sesión y perfil
   Tokens alineados con neolabqc-equipos.css y neolabqc-labs.css
   ============================================================ */

.nlqc-auth-box {
  max-width: 480px;
  margin: 32px auto;
  font-family: 'Inter', -apple-system, sans-serif;
}

.nlqc-auth-header { margin-bottom: 16px; }
.nlqc-auth-header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4B5563;
}

.nlqc-auth-form {
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

.nlqc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.nlqc-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.nlqc-form-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #4B5563;
}

.nlqc-form-group small { font-size: 11.5px; color: #8D95A1; text-transform: none; letter-spacing: 0; }

.nlqc-form-group input {
  padding: 9px 12px;
  border: 1px solid #CDD1D8;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  background: #F5F6F7;
  color: #0F1117;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.nlqc-form-group input:focus {
  outline: none;
  border-color: #2D6BC4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,107,196,.12);
}

.nlqc-remember {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.nlqc-remember label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12.5px; }

.nlqc-forgot { font-size: 12px; color: #2D6BC4; text-decoration: none; }
.nlqc-forgot:hover { text-decoration: underline; }

.nlqc-required { color: #DC2626; }

/* Honeypot: invisible para personas, presente para bots que rellenan todo el formulario.
   Se oculta con position absoluta en vez de display:none porque algunos bots ignoran
   los campos con display:none. */
.nlqc-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Botones ── */
.nlqc-btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  line-height: 1;
  text-align: center;
}
.nlqc-btn-primary {
  background: linear-gradient(135deg, #2D6BC4 0%, #7C5CBF 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45,107,196,.28);
}
.nlqc-btn-primary:hover { opacity: .87; transform: translateY(-1px); color: #fff; }
.nlqc-btn-secondary {
  background: #fff;
  color: #0F1117;
  border: 1px solid #CDD1D8;
}
.nlqc-btn-secondary:hover { background: #F0F2F5; }
.nlqc-btn-full { width: 100%; display: block; margin-top: 4px; }

/* ── Avisos ── */
.nlqc-auth-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 14px;
}
.nlqc-auth-success-inline {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 14px;
}

.nlqc-auth-success {
  text-align: center;
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.nlqc-auth-success h3 { color: #15803D; margin: 0 0 10px; font-size: 18px; }
.nlqc-auth-success p  { color: #4B5563; font-size: 14px; margin: 0 0 12px; line-height: 1.6; }
.nlqc-auth-hint { font-size: 12.5px !important; color: #8D95A1 !important; }

.nlqc-auth-logged {
  text-align: center;
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 14px;
  padding: 28px;
}
.nlqc-auth-links { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }

.nlqc-auth-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #4B5563;
}
.nlqc-auth-footer a { color: #2D6BC4; text-decoration: none; font-weight: 600; }

/* ── Reenvío de verificación ── */
.nlqc-resend {
  margin-top: 14px;
  background: #F5F6F7;
  border: 1px solid #E2E5E9;
  border-radius: 10px;
  padding: 12px 16px;
}
.nlqc-resend summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: #4B5563;
  list-style: none;
}
.nlqc-resend summary::-webkit-details-marker { display: none; }
.nlqc-resend summary::before { content: '＋ '; color: #2D6BC4; }
.nlqc-resend[open] summary::before { content: '－ '; }
.nlqc-resend-form { margin-top: 12px; }
.nlqc-resend-form .nlqc-form-group { margin-bottom: 10px; }

/* ── Perfil ── */
.nlqc-profile-box {
  max-width: 560px;
  margin: 32px auto;
  font-family: 'Inter', -apple-system, sans-serif;
}
.nlqc-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #E2E5E9;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.nlqc-profile-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2D6BC4 0%, #7C5CBF 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.nlqc-profile-name { margin: 0; font-size: 18px; color: #0F1117; }
.nlqc-profile-sub  { margin: 2px 0 0; font-size: 12.5px; color: #4B5563; }

.nlqc-profile-lab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #F5F6F7;
  border: 1px solid #E2E5E9;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 13.5px;
}
.nlqc-profile-lab span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #8D95A1;
}
.nlqc-profile-lab strong { color: #0F1117; }
.nlqc-profile-lab a {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: #2D6BC4;
  text-decoration: none;
}
.nlqc-profile-lab a:hover { text-decoration: underline; }

.nlqc-profile-form { padding-top: 24px; }
.nlqc-profile-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #2D6BC4;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E5E9;
}
.nlqc-profile-form h3.nlqc-profile-section-title:not(:first-child) { margin-top: 24px; }
.nlqc-profile-optional { color: #9AA1AC; font-weight: 500; text-transform: none; letter-spacing: 0; }

@media (max-width: 520px) {
  .nlqc-auth-form    { padding: 20px 16px; }
  .nlqc-form-row     { grid-template-columns: 1fr; }
  .nlqc-profile-header { flex-direction: column; text-align: center; }
  .nlqc-profile-lab  { flex-direction: column; align-items: flex-start; }
  .nlqc-profile-lab a { margin-left: 0; }
}
