/**
 * GoCore Shell Login Modal CSS - Wrapper Only
 * Apenas wrapper para canonical /login?modal=1 embed.
 * Autenticação é tratada pelo mainframe via iframe.
 */

/* Modal Overlay */
.gocore-shell-login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gocore-shell-login-overlay[hidden] {
  display: none !important;
}

/* Modal Box */
.gocore-shell-login-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  max-width: clamp(320px, 90vw, 560px);
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Close Button */
.gocore-shell-login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 50%;
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  z-index: 10;
}

.gocore-shell-login-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Modal Inner - Contains iframe */
.gocore-shell-login-inner {
  position: relative;
  width: 100%;
  height: auto;
}

/* Iframe for canonical /login?modal=1 */
.gocore-shell-login-iframe {
  width: 100%;
  height: auto;
  border: none;
  display: block;
}

/* Body class when modal is open */
body.gocore-shell-login-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* Responsive */
@media (max-width: 480px) {
  .gocore-shell-login-box {
    max-width: 95%;
    border-radius: 12px;
  }
}
