/* ============================================================
   CLEAN ENTERPRISE AUTH CARD (Embedded Inside Main Portal Layout)
   ============================================================ */
.auth-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px 44px;
}

.auth-card-shell {
  width: 100%;
  max-width: 446px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 22px;
  padding: 34px 36px 32px;
  box-shadow:
    0 20px 45px -15px rgba(15, 23, 42, 0.08),
    0 2px 8px rgba(15, 23, 42, 0.03);
}

.auth-view {
  display: none;
  animation: fadeSlide 0.22s ease-out;
}

.auth-view.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.back-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.back-link-btn:hover {
  color: #0f172a;
}

.auth-heading {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.auth-sub {
  margin: 0 0 24px;
  font-size: 13.8px;
  color: #64748b;
  line-height: 1.55;
}

/* Input Groups with Icons & Show/Hide Toggle */
.ent-field {
  margin-bottom: 16px;
}

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

.ent-label-row label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.forgot-link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #e20074;
  cursor: pointer;
}

.forgot-link:hover {
  text-decoration: underline;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-lead-icon {
  position: absolute;
  left: 13px;
  color: #94a3b8;
  display: flex;
  pointer-events: none;
}

.ent-input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border: 1.5px solid #dbe2ec;
  border-radius: 11px;
  font-size: 14.5px;
  font-family: inherit;
  color: #0f172a;
  background: #fcfdff;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}

.ent-input.has-trail {
  padding-right: 44px;
}

.ent-input::placeholder {
  color: #94a3b8;
  font-size: 13.5px;
}

.ent-input:hover {
  border-color: #b7c4d6;
  background: #ffffff;
}

.ent-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #e20074;
  box-shadow: 0 0 0 4px rgba(226, 0, 116, 0.12);
}

.ent-field.has-error .ent-input {
  border-color: #dc2626;
  background: #fffafa;
}

.ent-field.has-error .ent-input:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.ent-field.has-error .input-lead-icon {
  color: #dc2626;
}

.ent-field-err {
  display: none;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #dc2626;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}

.ent-field.has-error .ent-field-err,
.ent-field-err.show {
  display: flex;
}

.otp-digits-grid.has-error .otp-digit {
  border-color: #dc2626;
  background: #fffafa;
}

.ent-form-feedback {
  display: none;
  margin: -2px 0 14px;
  padding: 10px 13px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  align-items: flex-start;
  gap: 8px;
}

.ent-form-feedback.show {
  display: flex;
}

.ent-form-feedback.is-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.ent-form-feedback.is-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.eye-toggle {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Password Strength Bar */
.strength-wrap {
  margin-top: 8px;
  display: none;
}

.strength-wrap.show {
  display: block;
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 4px;
}

.strength-bar {
  height: 4px;
  border-radius: 99px;
  background: #e2e8f0;
  transition: background 0.2s;
}

.strength-text {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

/* Enterprise Buttons */
.ent-btn-primary {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 11px;
  background: #e20074;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(226, 0, 116, 0.24);
  transition: background 0.16s, transform 0.12s;
}

.ent-btn-primary:hover:not(:disabled) {
  background: #c10063;
  transform: translateY(-1px);
}

.ent-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ent-btn-outline {
  width: 100%;
  height: 46px;
  border: 1.5px solid #dbe2ec;
  border-radius: 11px;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.16s;
}

.ent-btn-outline:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.google-auth-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 44px;
}

.ent-btn-google {
  width: 100%;
  height: 46px;
  border: 1.5px solid #dbe2ec;
  border-radius: 11px;
  background: #ffffff;
  color: #1e293b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.16s;
}

.ent-btn-google:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
}

.auth-alt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.auth-alt-grid .google-auth-slot {
  min-height: 44px;
  align-items: center;
}

.ent-btn-compact {
  height: 44px;
  padding: 0 12px;
  font-size: 13.5px;
  gap: 7px;
  white-space: nowrap;
}

.ent-btn-google:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ent-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 12.5px;
  color: #94a3b8;
}

.ent-divider::before,
.ent-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-switch-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.auth-switch-footer button {
  background: none;
  border: none;
  padding: 0 2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #e20074;
  cursor: pointer;
}

.auth-switch-footer button:hover {
  text-decoration: underline;
}

/* 6-BOX INDIVIDUAL OTP INPUTS */
.otp-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fdf2f8;
  border: 1px solid #f9cce3;
  color: #e20074;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.otp-recipient-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 20px;
}

.otp-digits-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
  margin-bottom: 18px;
}

.otp-digit {
  width: 100%;
  height: 54px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  font-family: 'Inter', monospace;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.otp-digit:focus {
  outline: none;
  border-color: #e20074;
  box-shadow: 0 0 0 4px rgba(226, 0, 116, 0.13);
  transform: translateY(-1px);
}

.otp-digit.filled {
  border-color: #0f172a;
  background: #fafbfd;
}

.otp-paste-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}

.otp-paste-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.otp-paste-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.otp-paste-btn.pasted {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.otp-copy-display {
  background: #f8fafc;
  border: 1.5px dashed #94a3b8;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  margin-bottom: 16px;
  user-select: all;
}

.otp-copy-display span {
  font-family: 'Inter', 'Consolas', monospace;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 10px;
  color: #0f172a;
}

.resend-bar {
  margin-top: 16px;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

.resend-btn-link {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #e20074;
  cursor: pointer;
  padding: 0 4px;
}

.resend-btn-link:disabled {
  color: #94a3b8;
  cursor: not-allowed;
}

/* Alerts */
.ent-alert {
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.45;
}

.ent-alert.show {
  display: block;
}

.ent-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.ent-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.ent-demo-banner {
  display: none;
  padding: 11px 14px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 13px;
  margin-bottom: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ent-demo-banner.show {
  display: flex;
}

@media (max-width: 560px) {
  .auth-center-stage {
    padding: 20px 14px 32px;
  }
  .auth-card-shell {
    padding: 26px 20px 24px;
    border-radius: 18px;
  }
  .auth-heading {
    font-size: 21px;
  }
  .ent-input {
    font-size: 16px;
    height: 48px;
  }
  .ent-btn-primary,
  .ent-btn-outline,
  .ent-btn-google {
    height: 46px;
  }
  .ent-btn-compact {
    height: 44px;
    padding: 0 8px;
    font-size: 13px;
    gap: 6px;
  }
  .otp-digits-grid {
    gap: 7px;
  }
  .otp-digit {
    height: 50px;
    font-size: 20px;
    border-radius: 10px;
  }
}
