/* Overlay */
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding-left: 10px;
  padding-right: 10px;
}

/* Modal */
.login-modal {
  width: 100%;
  max-width: 380px;
  background: #fffdf9;
  padding: 30px 24px 36px;
  border-radius: 16px;
  position: relative;
  animation: fadeScale 0.25s ease;
}

/* Animation */
@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close */
.login-close {
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 24px;
  cursor: pointer;
}

/* Logo */
.login-logo {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo img {
  max-width: 140px;
  width: 100%;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Inputs */
.input-group {
  position: relative;
}

/* Inputs */
.input-group input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 42px;
  border-radius: 10px;
  border: 1px solid #d0b291;
  font-size: 14px;
  outline: none;
}

.input-group input:focus {
  border-color: #d58f4a;
}

/* Icons */
.input-group .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  font-size: 16px; /* adjust size if needed */
  opacity: 0.7;
}

.toggle-password:hover {
  transform: translateY(-50%) scale(1.2);
  opacity: 1;
}

/* Button */
.login-btn {
  margin-top: 10px;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(180deg, #ead2b8, #d1b392);
  color: #5b3b1d;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.login-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
/* Desktop enhancement */
@media (min-width: 768px) {
  .login-modal {
    padding: 36px 32px 42px;
  }
}

/* Quick Buttons Container */
.login-quick-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

/* Normal Quick Button Style */
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  background: #f6efe6;
  text-decoration: none;
  color: #5b3b1d;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

/* Icon inside button */
.quick-btn img {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
}

/* Hover background */
.quick-btn:hover {
  background: #ead2b8;
}

/* Find ID / Password Links */
.login-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  margin-top: -4px;
}

.login-links a {
  color: #8a6b47;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

/* Gradient Animated Border for Register Button */
.quick-btn.register-fancy {
  padding: 12px 6px;
  position: relative;
  z-index: 0;
}

/* GOLD GRADIENT BORDER */
.quick-btn.register-fancy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    #d0b291,
    #ead2b8,
    #fff3dc,
    #ead2b8,
    #d0b291
  );
  background-size: 300% 300%;
  animation: gold-flow 6s linear infinite;
}

/* Inner solid background to cover inside of button */
.quick-btn.register-fancy::after {
  content: "";
  position: absolute;
  inset: 2px; /* thickness of border */
  background: #f6efe6;
  z-index: 1;
}
/* Hover background */
.quick-btn.register-fancy:hover::after {
  background: #ead2b8;
}
/* Keep icon & text above the gradient */
.quick-btn.register-fancy img,
.quick-btn.register-fancy span {
  position: relative;
  z-index: 2;
}

/* Gradient animation keyframes */
@keyframes gold-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 300% 50%;
  }
}

/* Mobile fine-tune */
@media (max-width: 360px) {
  .quick-btn span {
    font-size: 11px;
  }
}
