/* ==========================================================================
   VENEXA PEPTIDES - UNIFIED LOGIN STYLES (login.css)
   ========================================================================== */

body.login-body {
  min-height: 100vh;
  background: var(--grad-hero);
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Top Bar Simplificada */
.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.brand-link-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-title-box {
  display: flex;
  flex-direction: column;
}

.brand-title-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle-text {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-topbar-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-topbar-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}

/* Contenedor Central */
.login-main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
}

.auth-card-wrapper {
  width: 100%;
  max-width: 480px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--dialog-shadow);
  box-sizing: border-box;
  position: relative;
  animation: cardAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-logo-badge {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-badge img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.auth-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
  color: var(--color-text-main);
}

.auth-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Pestañas Login / Registro */
.auth-nav-tabs {
  display: flex;
  background: var(--color-bg-card-subtle);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: var(--color-bg-card);
  color: var(--color-text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .auth-tab-btn.active {
  background: #1e293b;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Formulario e Inputs */
.form-group-item {
  margin-bottom: 18px;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.custom-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.custom-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-input-border);
  background: var(--color-input-bg);
  color: var(--color-text-main);
  font-size: 0.92rem;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-input:focus {
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}

/* Botón Principal */
.btn-submit-auth {
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  border: none;
  background: var(--grad-brand);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
  margin-top: 10px;
}

.btn-submit-auth:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

.btn-submit-auth:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Feedback Banner */
.feedback-banner {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.4;
  animation: fadeIn 0.2s ease;
}

.feedback-banner.error {
  display: flex;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--color-rose);
}

.feedback-banner.success {
  display: flex;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--color-mint);
}

/* Info Badge de Inteligencia de Roles */
.role-dispatch-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 10px;
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.role-dispatch-info svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* Footer */
.login-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.login-footer a {
  color: inherit;
  text-decoration: underline;
  margin: 0 6px;
}

.login-footer a:hover {
  color: var(--color-primary);
}
