/* Admin Modal Styles */
.adm-creative {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  background: transparent !important; /* biztosítsd, hogy a modal overlay transparent */
}

.adm-creative.is-open {
  opacity: 1;
  visibility: visible;
}

.adm-creative__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* ez marad, overlay hatás */
  backdrop-filter: blur(10px);
  z-index: 1;
}

.adm-creative__stage {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 440px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  background: transparent !important; /* biztonság kedvéért */
}

.adm-creative.is-open .adm-creative__stage {
  transform: scale(1) translateY(0);
}

.admin-modal-container {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 30px;
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.admin-modal-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #6d28d9, #06b6d4, #f59e0b, #6d28d9);
  border-radius: 22px;
  z-index: -1;
  animation: border-rotate 4s linear infinite;
  filter: blur(10px);
  opacity: 0.8;
}

@keyframes border-rotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.admin-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 3;
}

.admin-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.admin-modal-content {
  position: relative;
  z-index: 2;
}

.admin-header {
  text-align: center;
  margin-bottom: 30px;
}

.admin-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.4);
}

.admin-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin: 0;
}

.admin-form {
  margin-bottom: 20px;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow:
    0 0 0 3px rgba(139, 92, 246, 0.2),
    0 0 20px rgba(139, 92, 246, 0.3);
  background: rgba(0, 0, 0, 0.4);
}

.input-group label {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  transform: translateY(-175%) translateX(-10px) scale(0.9);
  color: #8b5cf6;
  font-size: 0.85rem;
}

.input-group i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.input-group input:focus + label + i {
  color: #8b5cf6;
}

.admin-submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s;
  box-shadow: 0 10px 25px rgba(109, 40, 217, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.admin-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s;
}

.admin-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(109, 40, 217, 0.5);
}

.admin-submit-btn:hover::before {
  left: 100%;
}

.admin-submit-btn:active {
  transform: translateY(0);
}

.btn-loader {
  display: none;
}

.admin-submit-btn.loading .btn-text {
  display: none;
}

.admin-submit-btn.loading .btn-loader {
  display: block;
}

.admin-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.security-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.security-notice i {
  color: #10b981;
}

/* Reszponzív design */
@media (max-width: 480px) {
  .admin-modal-container {
    padding: 25px 20px;
  }

  .admin-title {
    font-size: 1.5rem;
  }

  .admin-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
