/* ════════════════════════════════════════
   JUMP HUB — login.css  v2.0
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── NEUTRALIZA ADMIN BAR NA PG DE LOGIN ─────── */
html,
html body.hub-login-page,
html.wp-toolbar body.hub-login-page {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.hub-login-page #wpadminbar {
  display: none !important;
}


:root {
  --primary:   #FF6B00;
  --primary-h: #E05E00;
  --primary-l: #FFF4EC;
  --text:      #111827;
  --text-2:    #4B5563;
  --text-3:    #9CA3AF;
  --border:    #E5E7EB;
  --surface:   #FFFFFF;
  --error:     #EF4444;
  --error-l:   #FEF2F2;
  --success:   #22C55E;
  --success-l: #F0FDF4;
  --radius:    12px;
  --t:         .18s ease;
}

body.hub-login-page {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0F172A;
  min-height: 100vh;
  display: flex;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ─ Background animado ─────────────────── */
.login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.login-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.shape-1 {
  width: 600px; height: 600px;
  background: #FF6B00;
  top: -200px; left: -200px;
  animation: floatShape 8s ease-in-out infinite;
}
.shape-2 {
  width: 400px; height: 400px;
  background: #3B82F6;
  bottom: -100px; right: 30%;
  animation: floatShape 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 300px; height: 300px;
  background: #8B5CF6;
  top: 40%; right: -100px;
  animation: floatShape 12s ease-in-out infinite 2s;
}
@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(.95); }
}

/* ─ Wrapper ────────────────────────────── */
.login-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ─ Painel de marca (esquerdo) ─────────── */
.login-brand {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
}
.login-brand-inner {
  max-width: 480px;
}

/* Logo */
.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}
.login-logo-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  box-shadow: 0 4px 20px rgba(255,107,0,.4);
}
.login-logo-text {
  font-size: 22px;
  color: #fff;
  font-weight: 400;
  letter-spacing: -.3px;
}
.login-logo-text strong { color: var(--primary); font-weight: 800; }

.login-brand-title {
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}
.login-brand-title span { color: var(--primary); }

.login-brand-sub {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Features */
.login-features { display: flex; flex-direction: column; gap: 16px; }

.login-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 500;
}
.login-feature-icon {
  width: 36px; height: 36px;
  background: rgba(255,107,0,.15);
  border: 1px solid rgba(255,107,0,.25);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 15px;
  flex-shrink: 0;
}

/* ─ Painel do formulário (direito) ─────── */
.login-form-panel {
  width: 480px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255,255,255,.08);
}

.login-form-card {
  width: 100%;
  max-width: 400px;
}

/* Header do form */
.login-form-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-form-logo {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(255,107,0,.35);
}
.login-form-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.login-form-header p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
}

/* Alerta */
.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1.5px solid transparent;
}
.login-alert-error {
  background: rgba(239,68,68,.12);
  color: #FCA5A5;
  border-color: rgba(239,68,68,.25);
}
.login-alert-success {
  background: rgba(34,197,94,.12);
  color: #86EFAC;
  border-color: rgba(34,197,94,.25);
}
.login-alert i { margin-top: 1px; flex-shrink: 0; }

/* Form groups */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  margin-bottom: 8px;
}
.form-group label i { font-size: 12px; color: var(--primary); }

.input-wrap { position: relative; }
.input-wrap input {
  width: 100%;
  height: 46px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  padding: 0 16px;
  outline: none;
  transition: var(--t);
}
.input-wrap input::placeholder { color: rgba(255,255,255,.3); }
.input-wrap input:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,.10);
  box-shadow: 0 0 0 3px rgba(255,107,0,.15);
}

/* Estado de erro no input */
.form-group.has-error .input-wrap input {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
.form-error {
  display: block;
  font-size: 12px;
  color: #FCA5A5;
  margin-top: 5px;
  min-height: 16px;
}

/* Toggle senha */
.password-wrap input { padding-right: 46px; }
.toggle-password {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  font-size: 15px;
  transition: var(--t);
  padding: 4px;
}
.toggle-password:hover { color: rgba(255,255,255,.8); }

/* Lembrar + esqueceu */
.form-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

/* Checkbox custom */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  user-select: none;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
  width: 16px; height: 16px;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--t);
  flex-shrink: 0;
}
.checkbox-label input:checked + .checkmark {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.forgot-link {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: var(--t);
}
.forgot-link:hover { color: var(--primary); }

/* Botão submit */
.btn-submit {
  width: 100%;
  height: 48px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.12));
}
.btn-submit:hover {
  background: var(--primary-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,0,.40);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.login-form-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}
.login-form-footer a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
}
.login-form-footer a:hover { color: var(--primary); }

/* ─ Rate limit indicator ─────────────────── */
.rate-limit-bar {
  height: 3px;
  background: rgba(239,68,68,.3);
  border-radius: 99px;
  margin-bottom: 12px;
  overflow: hidden;
  display: none;
}
.rate-limit-bar-fill {
  height: 100%;
  background: var(--error);
  border-radius: 99px;
  transition: width .3s ease;
}

/* ─ Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .login-brand { display: none; }
  .login-form-panel {
    width: 100%;
    border-left: none;
    background: rgba(15,23,42,.9);
  }
}
@media (max-width: 480px) {
  .login-form-panel { padding: 24px 16px; }
  .login-form-card  { padding: 0; }
  .login-brand-title { font-size: 30px; }
}

/* ─ Animação de entrada ──────────────────── */
.login-form-card {
  animation: fadeInCard .4s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   JUMP HUB — SSO LOGIN (dark theme)
   ============================================= */

/* ── Logo Jump no header do card ── */
.login-form-logo {
  width: 64px;
  height: 64px;
  background: rgba(255, 128, 0, .12);
  border: 1.5px solid rgba(255, 128, 0, .3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(255, 128, 0, .2);
}

.login-form-logo svg {
  width: 36px;
  height: 36px;
}

/* ── Seção SSO ── */
.sso-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

/* ── Botão Microsoft — dark theme ── */
.btn-microsoft {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  padding: 14px 20px;
  border: 1.5px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
  letter-spacing: -.01em;
  position: relative;
  overflow: hidden;
}

/* Brilho sutil no hover */
.btn-microsoft::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.04));
  pointer-events: none;
}

.btn-microsoft:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 0 0 3px rgba(255, 128, 0, .15),
              0 4px 16px rgba(0, 0, 0, .2);
  color: #fff;
  transform: translateY(-1px);
}

.btn-microsoft:active {
  transform: translateY(0);
}

.ms-logo { flex-shrink: 0; }

.btn-ms-text { flex: 1; }

.btn-ms-arrow {
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
  transition: transform .2s, color .2s;
}

.btn-microsoft:hover .btn-ms-arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* ── Badge de domínio — dark ── */
.sso-domain-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 7px 14px;
}

.sso-domain-badge i {
  color: rgba(255, 255, 255, .25);
  font-size: 11px;
}

.sso-domain-badge strong {
  color: rgba(255, 255, 255, .75);
  font-weight: 600;
}

/* ── Divisor "como funciona" — dark ── */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .08);
}

.login-divider span {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .25);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* ── Steps "como funciona" — dark ── */
.sso-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
}

.sso-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
}

.sso-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 107, 0, .35);
}

.sso-step span {
  font-size: 11px;
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
  line-height: 1.3;
}

.sso-step-arrow {
  color: rgba(255, 255, 255, .15);
  font-size: 11px;
  flex-shrink: 0;
  margin-bottom: 18px;
}

/* ── Alerta de erro — dark ── */
.login-alert.login-alert-error {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239, 68, 68, .12);
  border: 1.5px solid rgba(239, 68, 68, .25);
  color: #FCA5A5;
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.login-alert.login-alert-error i {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .sso-steps       { gap: 2px; padding: 12px 10px; }
  .sso-step span   { font-size: 10px; }
  .sso-step-num    { width: 24px; height: 24px; font-size: 11px; }
  .btn-microsoft   { font-size: 14px; padding: 13px 16px; }
}