/* Arena Login Styles */

:root {
  --dark-brown-semi: rgba(61, 47, 31, 0.8);
}

/* Login Section (shown when not logged in) */
.login-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  margin: 16px, 16px;
  border: 3px solid var(--dark-brown-semi);
  border-radius: 3px;
  mix-blend-mode: multiply;
  box-sizing: border-box;
  gap: 20px;
  padding: 20px;
}

/* 1. Heading Section */
.login-heading {
  width: 100%;
}

.login-heading h1 {
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 12px;
  color: var(--dark-brown-semi);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
  margin: 0;
  line-height: 0.9;
  /* Override global.css header styling */
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  text-transform: none;
}

/* 2. Body Section */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  flex: 1;
}

.login-monster {
  flex-shrink: 0;
}

.monster-silhouette {
  width: 180px;
  height: 180px;
  background-color: var(--dark-brown-semi);
  -webkit-mask: url('/shared/images/poster-monster-white.png') no-repeat center;
  mask: url('/shared/images/poster-monster-white.png') no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.login-text {
  flex: 1;
  text-align: center;
}

.login-text h2 {
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--dark-brown-semi);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
  margin: 0;
  line-height: 1.1;
  /* Override global.css header styling */
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  text-transform: none;
}

.login-subtext {
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--dark-brown-semi);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
  margin: 8px 0 0 0;
  line-height: 1.2;
}

/* 3. Signup Section */
.login-signup {
  width: 100%;
}

.login-signup .signup-btn {
  width: 100%;
  background-color: var(--dark-brown-semi);
  color: #FFFBE9;
  padding: 4px 40px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  border: none;
  border-radius: 0px; /* removed rounding */
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.login-signup .signup-btn:hover {
  background-color: #4B7832;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* 4. Login Form Section */
.login-form-section {
  width: 100%;
}

.login-section h3 {
  margin-bottom: 24px;
  color: #2F2F2F;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
  /* Override global.css header styling */
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  text-transform: none;
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
}

.login-inputs {
  display: flex;
  gap: 12px;
  width: 100%;
}

.login-inputs input {
  flex: 1; /* each input takes equal space */
}

.login-form input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #B29572;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  background: rgba(250, 242, 221, 0.8);
  backdrop-filter: blur(3px);
  color: #2F2F2F;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-form input:focus {
  outline: none;
  border-color: #5A8F3E;
  box-shadow: 0 0 0 2px rgba(90, 143, 62, 0.2), 0 2px 12px rgba(0, 0, 0, 0.15);
  background: rgba(250, 242, 221, 0.95);
}

.login-form input::placeholder {
  color: #888;
}

.login-form button {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button Styles - Updated to match global.css */
.signup-btn {
  background-color: #5A8F3E;
  color: #ffe9e9;
  padding: 15px 30px;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signup-btn:hover {
  background-color: #4B7832;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.login-form .login-btn {
  background-color: var(--dark-brown-semi);
  color: #FFFBE9;
  border: none;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  border-radius: 0px !important; /* force override with !important */
  padding: 4px 40px;
}

.login-btn:hover {
  background-color: #4B7832;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Divider - Updated to match global.css */
.divider {
  position: relative;
  width: 100%;
  text-align: center;
  margin: 4px 0;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 35%;
  height: 4px;
  background-color: var(--dark-brown-semi);
}

.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 35%;
  height: 4px;
  background-color: var(--dark-brown-semi);
}

.divider-text {
  display: inline-block;
  color: var(--dark-brown-semi);
  font-weight: 600;
  padding: 0 15px;
  position: relative;
  z-index: 1;
  background: transparent; /* let it inherit the parent background */
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Modal Styles - Transparent design */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #f5e6d3;
  background-image: url('/shared/images/parchment-tex.png');
  backdrop-filter: blur(10px);
  padding: 32px;
  border: 3px solid var(--dark-brown-semi);
  border-radius: 3px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--dark-brown-semi);
  transition: color 0.2s ease;
  font-weight: bold;
}

.close-modal:hover {
  color: #4B7832;
}

.modal h2 {
  margin-bottom: 24px;
  color: var(--dark-brown-semi);
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
  line-height: 1.1;
  /* Override global.css header styling */
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  text-transform: none;
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
}

/* Form Sections */
.form-section {
  margin-bottom: 24px;
}

.form-section h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--dark-brown-semi);
  text-align: left;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
  /* Override global.css header styling */
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  text-transform: none;
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
}

.form-section input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #B29572;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  margin-bottom: 8px;
  background: rgba(250, 242, 221, 0.8);
  backdrop-filter: blur(3px);
  color: #2F2F2F;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-section input:focus {
  outline: none;
  border-color: #5A8F3E;
  box-shadow: 0 0 0 2px rgba(90, 143, 62, 0.2), 0 2px 12px rgba(0, 0, 0, 0.15);
  background: rgba(250, 242, 221, 0.95);
}

.form-section input::placeholder {
  color: #888;
}

/* Availability Message */
.availability-message {
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-weight: 600;
  min-height: 20px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  backdrop-filter: blur(3px);
}

.available {
  background: rgba(90, 143, 62, 0.2);
  color: #5A8F3E;
  border-color: rgba(90, 143, 62, 0.4);
}

.not-available {
  background: rgba(184, 87, 78, 0.2);
  color: #B8574E;
  border-color: rgba(184, 87, 78, 0.4);
}

/* Password Validation */
.password-validation {
  min-height: 20px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.password-error {
  color: #B8574E;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.password-success {
  color: #5A8F3E;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

/* Hide/Show Elements */
.hidden {
  display: none !important;
}

/* Enhanced button styling for modal */
.modal .signup-btn {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 0;
  background-color: var(--dark-brown-semi);
  color: #FFFBE9;
  padding: 12px 40px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  border: none;
  border-radius: 0px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  cursor: pointer;
}

.modal .signup-btn:hover {
  background-color: #4B7832;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
  .login-section h3 {
    font-size: 1.2rem;
  }
  
  .signup-btn {
    font-size: 1.1rem;
    padding: 12px 24px;
  }
  
  .modal-content {
    padding: 24px;
    width: 95%;
    margin: 10px;
  }
  
  .login-form {
    max-width: 100%;
  }
}

/* Additional polish for form interactions */
.form-section input:valid {
  border-color: rgba(90, 143, 62, 0.5);
}

.form-section input:invalid {
  border-color: rgba(184, 87, 78, 0.5);
}

/* Smooth transitions for all interactive elements */
* {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Independent button classes for login page */
.poster-signup-button {
  width: 100%;
  background-color: var(--dark-brown-semi);
  color: #FFFBE9;
  padding: 4px 40px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  border: none;
  border-radius: 0px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  cursor: pointer;
  margin: 0;
}

.poster-signup-button:hover {
  background-color: #4B7832;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.poster-login-button {
  width: 100%;
  background-color: var(--dark-brown-semi);
  color: #FFFBE9;
  padding: 4px 40px;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: 'Oswald', Impact, "Arial Black", "Franklin Gothic Bold", "Helvetica Neue", Arial, sans-serif;
  border: none;
  border-radius: 0px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  cursor: pointer;
  margin: 0;
}

.poster-login-button:hover {
  background-color: #4B7832;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}