/* WinLegends Login & Register Modal Redesign - Bet30 Style */

/* Backdrop */
.login-modal {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: "Roboto Condensed", "Oswald", sans-serif;
}

.login-modal.open {
  display: flex;
}

/* Modal Content Container */
.login-modal .login-content {
  background: linear-gradient(180deg, #2b1d11 0%, #150b05 100%);
  border: 2px solid #9e7d48;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
  padding: 30px;
  width: 420px;
  max-width: 90vw;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #fff;
}

/* Close Button (Red Circle) */
.login-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 32px;
  height: 32px;
  background: #a61c1c;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transition: transform 0.2s, background 0.2s;
}

.login-close:hover {
  transform: scale(1.1);
  background: #cc2222;
}

/* Logo */
.login-modal .login-logo {
  text-align: center;
  margin-bottom: 20px;
}

.login-modal .login-logo img {
  max-width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

/* Title (with background pill) */
.login-modal .login-title {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 10px;
  margin: 0 0 10px 0;
  text-align: center;
  color: #ffd700;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Meta / Subtitle */
.login-modal .login-meta {
  text-align: center;
  color: #bbb;
  font-size: 14px;
  margin-bottom: 25px;
}

.login-modal .login-meta a {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
}

.login-modal .login-meta a:hover {
  text-decoration: underline;
}

/* Form Styling */
.login-modal .login-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #ccc;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.login-modal .form-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(20, 10, 5, 0.6);
  border: 1px solid #4e3b29;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 15px;
  color: #fff;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.login-modal .form-input:focus {
  outline: none;
  border-color: #ffd700;
  background: rgba(30, 15, 8, 0.8);
}

.login-modal .form-input::placeholder {
  color: #665544;
}

/* Password Toggle */
.login-modal .password-wrap {
  position: relative;
}

.login-modal .password-toggle {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 18px;
}

.login-modal .password-toggle:hover {
  color: #fff;
}

/* Submit Button */
.btn-login-custom {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: linear-gradient(180deg, #ffcc00 0%, #ff9900 100%);
  border: none;
  border-radius: 8px;
  color: #331a00;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 0 #b36b00; /* 3D effect */
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-login-custom:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #b36b00;
}

.btn-login-custom:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #b36b00;
}

/* Error Box */
.login-error {
  text-align: center;
  font-size: 13px;
  margin-bottom: 15px;
}

/* Decoration cleanup */
.modal-decoration-top {
  display: none;
}
