.message-popper {
  position: fixed;
  max-width: 340px;
  padding: 17px 16px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
  word-wrap: break-word;
  display: flex;
  align-items: center;

  /* Position-specific arrow styles */
  &[data-position="top"]::after,
  &[data-position="top-center"]::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: inherit;
  }

  &[data-position="top-left"]::after {
    top: 100%;
    left: 20px;
    border-top-color: inherit;
  }

  &[data-position="top-right"]::after {
    top: 100%;
    right: 20px;
    border-top-color: inherit;
  }

  &[data-position="bottom"]::after,
  &[data-position="bottom-center"]::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: inherit;
  }

  &[data-position="bottom-left"]::after {
    bottom: 100%;
    left: 20px;
    border-bottom-color: inherit;
  }

  &[data-position="bottom-right"]::after {
    bottom: 100%;
    right: 20px;
    border-bottom-color: inherit;
  }

  &[data-position="left"]::after,
  &[data-position="center-left"]::after {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left-color: inherit;
  }

  &[data-position="right"]::after,
  &[data-position="center-right"]::after {
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-right-color: inherit;
  }

  /* Center position has no arrow */
  &[data-position="center"]::after {
    display: none;
  }

  /* Type styles */
  &.message-popper--error {
    background-color: #FFECE8;
    border: 1px solid #fecaca;
    color: #b91c1c;
    
    &::after {
      border-top-color: #FFECE8;
      border-bottom-color: #FFECE8;
      border-left-color: #FFECE8;
      border-right-color: #FFECE8;
    }
  }

  &.message-popper--success {
    background-color: #E8FFEA;
    border: 1px solid #bbf7d0;
    color: #15803d;
    
    &::after {
      border-top-color: #E8FFEA;
      border-bottom-color: #E8FFEA;
      border-left-color: #E8FFEA;
      border-right-color: #E8FFEA;
    }
  }

  /* Visibility states */
  &.message-popper--visible {
    opacity: 1;
    visibility: visible;
  }

  &.message-popper--hidden {
    opacity: 0;
    visibility: hidden;
  }

  /* Close button */
  .message-popper__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      opacity: 1;
    }
  }

  /* Icon styles */
  .message-popper__icon {
    display: flex;
    align-items: center;
    margin-right: 11px;
    font-size: 16px;
    flex-shrink: 0;
  }

  /* Success icon color */
  &.message-popper--success .message-popper__icon {
    color: #00B42A;
    margin-top: 5px;
    font-size: 14px;
  }

  /* Error icon color */
  &.message-popper--error .message-popper__icon {
    color: #F53F3F;
    margin-top: 5px;
    font-size: 14px;
  }

  /* Message text */
  .message-popper__text {
    margin: 0;
    padding-right: 24px; /* Space for close button */
    flex: 1 1;
  }
}
@font-face {
  font-family: 'AvenirNext';
  src: url(/assets/app/assets/builds/fonts/AvenirNextLTPro-Regular-21d7fc503db5e58915ced447c70c1743ae04ba01b5114c67bef1ea89d082653a.otf) format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'AvenirNext';
  src: url(/assets/app/assets/builds/fonts/AvenirNextLTPro-Demi-98bd490289da52ce0c43f277fd6f7aa0f2e632a7b2b8cc6eeb5772729ff89ae7.otf) format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'AvenirNext';
  src: url(/assets/app/assets/builds/fonts/AvenirNextLTPro-Bold-1b35300a2a0d53f458f42d6ab474c3e0b3370dd57558b5d1bbb4ee65727e0cf3.otf) format('opentype');
  font-weight: 700;
  font-style: normal;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "AvenirNext",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background-color: #f7f7f8;
  color: #1b1b21;
  line-height: 1.5;
}

/* Login container */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  margin-right: auto;
  margin-left: auto;
}

/* Login card */
.login-card {
  width: 424px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

/* Header section */
.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.logo-text {
  width: 176px;
  height: 32px;
}

.tagline {
  font-size: 16px;
  color: #46464f;
  text-align: center;
}

/* Divider */
.divider {
  display: flex;
  gap: 24px;
  width: 100%;
}

/* Form styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: #1b2446;
}

.input-container {
  position: relative;
  height: 50px;
}

.form-input {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 14px 12px;
  border-radius: 2px;
  border: 1px solid transparent;
  background-color: #f7f7f8;
  font-size: 16px;
  color: #1b1b21;
  transition: all 0.2s ease;
}

.form-input::-moz-placeholder {
  color: #a3a4aa;
}

.form-input::placeholder {
  color: #a3a4aa;
}

.form-input:hover {
  border: 1px solid #a3a8c1;
}

.form-input:focus {
  outline: none;
  border: 1px solid #605bff;
  box-shadow: 0 0 0 2px rgba(96, 91, 255, 0.1);
}

/* Password field specific styles */
.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 17px;
  top: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
  padding: 0;
}

.eye-icon {
  font-size: 19px;
  color: #a3a4aa;
}

/* Form options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.checkbox-container {
  position: relative;
  width: 16px;
  height: 16px;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.checkbox-box {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background-color: #e0e0e0;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-icon {
  width: 10px;
  height: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.checkbox-input:checked + .checkbox-box {
  background-color: #605bff;
}

.checkbox-input:checked + .checkbox-box .check-icon {
  opacity: 1;
}

/* Recover password link */
.recover-password {
  font-size: 14px;
  color: #605bff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recover-password:hover {
  color: #4a45c6;
  text-decoration: underline;
}

/* Login button */
.login-button {
  width: 100%;
  height: 38px;
  border-radius: 2px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  border: none;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: #605bff;
  position: relative;
}

.login-button:hover {
  background: #4a45c6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(96, 91, 255, 0.2);
}

.login-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.login-button:focus {
  outline: 2px solid #4a45c6;
  outline-offset: 2px;
}

.login-button:disabled {
  background: #a5a2f6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Loading spinner */
.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.login-button.loading .button-text {
  display: none;
}

.login-button.loading .loading-spinner {
  display: block;
}

/* Responsive styles */
@media (max-width: 991px) {
  .login-card {
    width: 90%;
    padding: 20px;
  }

  .login-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .login-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .login-card {
    width: 100%;
    padding: 16px;
  }

  .login-button {
    width: 100%;
  }
}
