/**
 * Lapso Mindbody - Login Styles
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --lapso-primary: #992d2d;
  --lapso-primary-hover: #6b2020;
  --lapso-text: #1a1a1a;
  --lapso-text-light: #666;
  --lapso-bg: #ffffff;
  --lapso-bg-light: #f8f9fa;
  --lapso-border: #e0e0e0;
  --lapso-error: #d63638;
  --lapso-success: #4caf50;
  --lapso-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Login Button (No logueado)
   ========================================================================== */
.lapso-login-wrapper {
  display: inline-block;
  position: relative;
  font-family: "Matter", "Montserrat", sans-serif !important;
}

.lapso-login-wrapper h1,
.lapso-login-wrapper h2,
.lapso-login-wrapper h3,
.lapso-login-wrapper h4,
.lapso-login-wrapper h5,
.lapso-login-wrapper h6,
.lapso-login-wrapper p,
.lapso-login-wrapper span,
.lapso-login-wrapper input,
.lapso-login-wrapper button,
.lapso-login-wrapper label {
  font-family: "Matter", "Montserrat", sans-serif !important;
}

.lapso-login-wrapper .lapso-login-button#lapso-login-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background-color: transparent !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.lapso-login-wrapper .lapso-login-button#lapso-login-open:hover {
  background-color: transparent !important;
  color: #fff !important;
  border: none !important;
  opacity: 0.8;
}

/* ==========================================================================
   User Button (Logueado)
   ========================================================================== */
.lapso-user-container {
  display: inline-block;
}

.lapso-user-icon-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background-color: transparent !important;
  border: none !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease;
}

.lapso-user-icon-button:hover {
  opacity: 0.8;
}

.lapso-user-icon-button svg {
  width: 40px;
  height: 40px;
}

.lapso-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--lapso-text);
}

/* ==========================================================================
   User Dropdown
   ========================================================================== */
.lapso-user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  margin-top: 8px;
  background-color: var(--lapso-bg);
  border: 1px solid var(--lapso-border);
  border-radius: 8px;
  box-shadow: var(--lapso-shadow);
  z-index: 1000;
}

.lapso-user-dropdown.is-open {
  display: block;
}

.lapso-user-info {
  padding: 12px 16px;
  border-bottom: 1px solid var(--lapso-border);
}

.lapso-user-email {
  font-size: 13px;
  color: var(--lapso-text-light);
}

.lapso-user-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.lapso-user-menu li {
  margin: 0;
}

.lapso-user-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--lapso-text);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.lapso-user-menu a:hover {
  background-color: #f3f4f6;
}

.lapso-logout-link {
  color: var(--lapso-error) !important;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.lapso-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.lapso-modal.is-open {
  display: flex;
}

.lapso-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.lapso-modal-container {
  position: relative;
  width: 90%;
  max-width: 64.81rem;
  height: 37.5rem;
  margin: 20px;
  background-color: var(--lapso-primary);
  border-radius: 10px;
  box-shadow: var(--lapso-shadow);
  overflow: hidden;
  font-family: "Matter", "Montserrat", sans-serif !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

.lapso-modal-close {
  position: absolute;
  top: -10px;
  right: 5px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  color: #fff;
  font-size: 60px !important;
  font-weight: 200;
  line-height: 1;
  font-family: "Matter", "Montserrat", sans-serif !important;
  transition: opacity 0.2s ease;
  z-index: 1;
}

.lapso-modal-close svg {
  display: none;
}

.lapso-modal-close::before {
  content: "×";
  display: block;
}

.lapso-modal-close:hover {
  color: #fff;
  opacity: 0.7;
}

.lapso-modal-header {
  padding: 0;
  text-align: center;
  max-width: 379px;
  width: 100%;
}

.lapso-modal-header h2 {
  margin: 0 0 10px;
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
  line-height: 48.76px;
  font-style: normal;
}

.lapso-modal-subtitle {
  margin: 10px 0 20px;
  font-size: 1.125em;
  font-weight: 400;
  color: #fff;
}

.lapso-modal-info {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-align: left;
}

.lapso-modal-content {
  padding: 0;
  max-width: 379px;
  width: 100%;
}

/* ==========================================================================
   Login Form
   ========================================================================== */
.lapso-login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lapso-form-group {
  margin-bottom: 0;
  width: 100%;
}

.lapso-form-group label {
  display: none;
}

.lapso-modal-container .lapso-form-group input,
.lapso-modal-container .lapso-form-group input[type="email"],
.lapso-modal-container .lapso-form-group input[type="password"],
.lapso-modal-container .lapso-form-group input[type="text"] {
  width: 100%;
  padding: 15px 10px;
  margin: 10px 0;
  border: none !important;
  border-bottom: 1px solid #fff !important;
  border-radius: 0 !important;
  font-size: 1.125em;
  font-weight: 400;
  background: transparent !important;
  background-color: transparent !important;
  color: #fff !important;
  caret-color: #fff !important;
  box-sizing: border-box;
  transition: border-bottom 0.2s ease;
  outline: none;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

.lapso-modal-container .lapso-form-group input:-webkit-autofill,
.lapso-modal-container .lapso-form-group input:-webkit-autofill:hover,
.lapso-modal-container .lapso-form-group input:-webkit-autofill:focus,
.lapso-modal-container .lapso-form-group input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--lapso-primary) inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.lapso-modal-container .lapso-form-group input::placeholder {
  color: #fff !important;
  opacity: 1;
}

.lapso-modal-container .lapso-form-group input::-webkit-input-placeholder {
  color: #fff !important;
  opacity: 1;
}

.lapso-modal-container .lapso-form-group input::-moz-placeholder {
  color: #fff !important;
  opacity: 1;
}

.lapso-modal-container .lapso-form-group input:-ms-input-placeholder {
  color: #fff !important;
  opacity: 1;
}

.lapso-modal-container .lapso-form-group input:focus {
  outline: none;
  border-bottom: 2px solid #fff !important;
  box-shadow: none !important;
  color: #fff !important;
}

.lapso-field-error {
  font-size: 12px;
  color: #fffc00;
  display: block;
  text-align: left;
  font-weight: 500;
  min-height: 18px;
  margin: 0;
}

.lapso-form-error {
  padding: 0;
  margin: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: #fffc00;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  min-height: 18px;
}

.lapso-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 40px;
  width: 100%;
}

.lapso-form-actions .lapso-forgot-password-link {
  color: #fff !important;
  text-decoration: underline;
  font-size: 0.88em;
  font-weight: 400;
  order: 1;
}

.lapso-form-actions .lapso-forgot-password-link:hover {
  text-decoration: underline;
}

.lapso-modal-container .lapso-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 161px;
  padding: 4px;
  background-color: #fff !important;
  color: var(--lapso-primary) !important;
  border: none !important;
  border-radius: 20px !important;
  font-size: 0.88em;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
  order: 2;
}

.lapso-modal-container .lapso-submit-button:hover {
  background-color: #fff !important;
  opacity: 0.9;
}

.lapso-modal-container .lapso-submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ==========================================================================
   Register Section
   ========================================================================== */
.lapso-register-section {
  margin-top: 0;
  text-align: center;
}

.lapso-register-text {
  margin: 0 0 10px;
  font-size: 0.88em;
  font-weight: 700;
  color: #fff;
}

.lapso-register-button {
  display: inline-block;
  width: 161px;
  padding: 4px;
  background-color: transparent;
  color: #fff !important;
  border: 1px solid #fff;
  border-radius: 20px;
  font-size: 0.88em;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

.lapso-register-button:hover {
  opacity: 0.9;
  text-decoration: none;
  color: #fff !important;
}

/* ==========================================================================
   Spinner
   ========================================================================== */
.lapso-spinner {
  animation: lapso-spin 1s linear infinite;
}

@keyframes lapso-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .lapso-modal-container {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    max-width: 100%;
    border-radius: 0;
  }

  .lapso-modal-close {
    font-size: 50px !important;
    font-weight: 100;
  }

  .lapso-modal-header {
    width: 80%;
  }

  .lapso-modal-content {
    width: 80%;
  }

  .lapso-login-form {
    width: 100%;
  }

  .lapso-modal-header h2 {
    font-size: 1.888em;
    line-height: 36.57px;
    margin-top: 0;
  }

  .lapso-modal-subtitle {
    font-size: 1.13em;
    font-weight: 300;
    line-height: 21.94px;
  }

  .lapso-modal-container .lapso-form-group input,
  .lapso-modal-container .lapso-form-group input[type="email"],
  .lapso-modal-container .lapso-form-group input[type="password"],
  .lapso-modal-container .lapso-form-group input[type="text"] {
    line-height: 21.94px;
    padding: 5px;
  }

  .lapso-modal-container .lapso-submit-button {
    padding: 7px;
  }

  .lapso-register-button {
    width: 131px;
    padding: 7px;
  }

  .lapso-form-actions {
    flex-direction: column-reverse;
    align-items: flex-start !important;
    gap: 10px;
  }

  .lapso-form-actions .lapso-forgot-password-link {
    margin: 5px 10px 10px 0;
    width: 100%;
    text-align: left;
  }

  .lapso-forgot-header h2 {
    font-size: 1.888em;
  }

  .lapso-forgot-description {
    font-size: 1em;
  }

  .lapso-user-name {
    display: none;
  }
}

/* ==========================================================================
   Forgot Password
   ========================================================================== */
.lapso-forgot-password-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lapso-forgot-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  width: 100%;
}

.lapso-forgot-header h2 {
  margin: 0 0 20px;
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.lapso-forgot-description {
  margin: 0;
  font-size: 1.125em;
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
  max-width: 500px;
}

.lapso-forgot-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 161px;
  padding: 7px;
  background-color: #fff !important;
  color: var(--lapso-primary) !important;
  border: none !important;
  border-radius: 20px !important;
  font-size: 0.88em;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-top: 30px;
}

.lapso-forgot-submit:hover {
  background-color: #fff !important;
  opacity: 0.9;
}

.lapso-forgot-password-form .lapso-form-group {
  width: 100%;
  max-width: 600px;
  margin-bottom: 10px;
}

.lapso-form-footer {
  margin-top: 20px;
  text-align: center;
}

.lapso-form-footer a {
  color: #fff;
  text-decoration: underline;
  font-size: 0.88em;
  transition: opacity 0.2s ease;
  font-weight: 400;
}

.lapso-form-footer a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.lapso-form-description {
  display: none;
}

.lapso-form-message {
  padding: 12px;
  margin: 10px 0 20px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.lapso-form-message.is-success {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #a8e6a3;
}

.lapso-form-message.is-error {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f5c542;
}

/* ==========================================================================
   Reset Password Page
   ========================================================================== */
.lapso-reset-password-wrapper {
  max-width: 400px;
  margin: 40px auto;
  padding: 0 20px;
}

.lapso-reset-password-box {
  background-color: var(--lapso-bg);
  border: 1px solid var(--lapso-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--lapso-shadow);
}

.lapso-reset-title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 600;
  color: var(--lapso-text);
  text-align: center;
}

.lapso-reset-description {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--lapso-text-light);
  text-align: center;
}

.lapso-message {
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.lapso-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.lapso-message-info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.lapso-message-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--lapso-error);
}

/* ==========================================================================
   Reset Password Form Extended
   ========================================================================== */
.lapso-form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--lapso-text);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lapso-border);
}

.lapso-form-section-title:first-of-type {
  margin-top: 0;
}

.lapso-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.lapso-form-half {
  flex: 1;
  margin-bottom: 0;
}

.lapso-reset-password-wrapper .lapso-form-error {
  display: block;
  font-size: 12px;
  color: var(--lapso-error);
  margin-top: 4px;
  min-height: 16px;
}

.lapso-login-form .required {
  color: var(--lapso-error);
}

.lapso-login-form input[readonly] {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
  .lapso-form-row {
    flex-direction: column;
    gap: 0;
  }

  .lapso-form-half {
    margin-bottom: 16px;
  }

  .lapso-reset-password-box {
    padding: 24px 16px;
  }
}

/* ==========================================================================
   Register Modal
   ========================================================================== */
.register-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  font-family: "Matter", "Montserrat", sans-serif;
}

.register-modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.register-modal-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 64.81rem;
  height: 680px;
  border-radius: 10px;
  padding: 0;
  background-color: #f4f3ec;
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  font-family: "Matter", "Montserrat", sans-serif;
  z-index: 1;
}

.register-modal-container::-webkit-scrollbar {
  display: none;
}

.closeRegisterContainer {
  position: absolute;
  right: 20px;
  top: 0;
  z-index: 2;
}

#closeRegisterModal {
  font-size: 50px !important;
  font-weight: 100 !important;
  cursor: pointer;
  color: var(--lapso-primary);
  background-color: transparent;
  border: none;
}

.modal-register-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px;
}

.modal-register-container .modal-header {
  text-align: center;
}

.modal-register-container .title {
  font-size: 40px;
  font-weight: 700;
  color: var(--lapso-primary);
  margin-top: 5%;
  font-family: "Matter", "Montserrat", sans-serif;
}

/* Healcode registration form overrides */
.register-modal .hc-label {
  display: none;
}

.register-modal .hc_registration {
  background-color: #f4f3ec;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, fit-content(100%)) auto;
  padding: 40px;
  gap: 8px;
  width: 80%;
  margin: auto;
}

.register-modal .hc-registration-field {
  font-weight: 400;
  margin-bottom: 30px !important;
  color: black !important;
  font-family: "Matter", "Montserrat", sans-serif !important;
  height: 40px !important;
}

.register-modal .hc-registration-field .note {
  display: none;
}

.register-modal .hc-registration-field input {
  background-color: transparent;
  border: none;
  color: black !important;
  font-size: 18px;
  font-family: "Matter", "Montserrat", sans-serif;
  padding-left: 10px;
  border-bottom: 1px solid black !important;
  width: 100%;
  box-sizing: border-box;
}

.register-modal .hc-registration-field input:-webkit-autofill,
.register-modal .hc-registration-field input:-webkit-autofill:hover,
.register-modal .hc-registration-field input:-webkit-autofill:focus,
.register-modal .hc-registration-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #f4f3ec inset !important;
  -webkit-text-fill-color: #000 !important;
  font-size: 18px !important;
  font-family: "Matter", "Montserrat", sans-serif !important;
  transition: background-color 5000s ease-in-out 0s;
}

.register-modal input::placeholder {
  color: black !important;
  opacity: 1;
}

.register-modal .additional-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  grid-column: span 2;
}

.register-modal .additional-fields .hc-registration-field {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.register-modal .additional-fields .hc-registration-field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.register-modal input#registrations_shoe_size {
  min-width: 180px;
  height: calc(40px + 4px);
}

.register-modal input#registrations_birth_date,
.register-modal input#registrations_dni,
.register-modal input#registrations_shoe_size {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.register-modal .gender-group {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
  grid-column: span 2;
}

.register-modal .gender-group label {
  font-family: "Matter", "Montserrat", sans-serif;
  font-size: 14px;
  color: black;
}

.register-modal .parsley-errors-list.filled > li {
  color: var(--lapso-primary);
  font-weight: bold;
  margin-left: 10px;
  margin-top: 5px;
  font-size: 9px;
}

.register-modal .hc-button {
  font-size: 18px;
  font-weight: 400;
  border-radius: 20px;
  border: none;
  padding: 5px 25px;
  background-color: var(--lapso-primary);
  color: white;
  margin: auto;
}

.register-modal .hc-button.submit {
  font-size: 14px;
  font-weight: bold;
  height: 28px !important;
  width: 160px;
  font-family: "Matter", "Montserrat", sans-serif;
  line-height: 0;
  margin-top: 15px;
}

.register-modal .hc-button:disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
}

.register-modal input#hc-register:hover {
  background: var(--lapso-primary);
  color: white;
  cursor: pointer;
}

.register-modal .hc-privacy-footer {
  display: none;
}

.register-modal #registrations_country,
.register-modal #registrations_state {
  background-color: transparent;
  border: none;
  color: black !important;
  font-size: 18px;
}

/* Register Modal Responsive */
@media (max-width: 736px) {
  .register-modal-container {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    max-height: none;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    border-radius: 0;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding: 20px 0;
  }

  .modal-register-container {
    width: 100%;
    padding: 10px;
  }

  .modal-register-container .title {
    font-size: 1.88em !important;
  }

  .register-modal .hc_registration {
    gap: 10px;
    width: 100%;
    margin: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .register-modal .additional-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
  }

  .register-modal .gender-group {
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
  }

  .register-modal input#registrations_birth_date,
  .register-modal input#registrations_dni,
  .register-modal input#registrations_shoe_size {
    min-width: auto !important;
  }
}
