/* Login BY4 modal yardımcıları (modals.css ile birlikte) */
.login-by4-card {
  max-width: 440px;
  margin: 0 auto;
}

.login-by4-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px 12px;
  font-size: 13px;
  color: #6b7280;
}

.login-by4-inline-msg {
  margin: 10px 12px 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.login-by4-inline-msg.is-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.login-by4-inline-msg.is-warn {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

/* BY4 toast (login sayfası — main.css yüklenmez) */
.by4-toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

body.by4-modal-lock .by4-toast-stack {
  z-index: 2147483100;
}

.by4-toast {
  pointer-events: auto;
  width: min(420px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
}

.by4-toast::before {
  content: "";
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: #9ca3af;
}

.by4-toast.is-success::before { background: #10b981; }
.by4-toast.is-error::before { background: #ef4444; }
.by4-toast.is-warning::before { background: #f59e0b; }
.by4-toast.is-info::before { background: #3b82f6; }

.by4-toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 14px;
}

.by4-toast.is-success .by4-toast-icon { background: #ecfdf5; color: #10b981; }
.by4-toast.is-error .by4-toast-icon { background: #fef2f2; color: #ef4444; }
.by4-toast.is-warning .by4-toast-icon { background: #fffbeb; color: #f59e0b; }
.by4-toast.is-info .by4-toast-icon { background: #eff6ff; color: #3b82f6; }

.by4-toast-body { flex: 1 1 auto; min-width: 0; }

.by4-toast-title {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.by4-toast-message {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.35;
  word-break: break-word;
}

.by4-toast-close {
  border: 0;
  background: transparent;
  color: #9ca3af;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.by4-toast-close:hover {
  background: rgba(17, 24, 39, 0.06);
  color: #111827;
}

.by4-toast-in {
  animation: loginBy4ToastIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.by4-toast-out {
  animation: loginBy4ToastOut 180ms ease both;
}

@keyframes loginBy4ToastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loginBy4ToastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}
