@font-face {
  font-family: 'Proxima Nova Regular';
  src: url('/assets/fonts/proxima-nova/ProximaNova-Regular.ttf') format('opentype');
}

@font-face {
  font-family: 'Proxima Nova Medium';
  src: url('/assets/fonts/proxima-nova/Proximanova-Medium.otf') format('opentype');
}

@font-face {
  font-family: 'Butler Regular';
  src: url('/assets/fonts/butler/Butler_Regular.otf') format('opentype');
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: 'Proxima Nova Regular', sans-serif;
}

/* Auth layout */
.auth-layout {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.auth-layout__image {
  width: 50%;
  height: 100%;
  background-image: linear-gradient(
      to bottom,
      rgba(237, 37, 128, 0.6),
      rgba(212, 33, 40, 0.6),
      rgba(242, 110, 87, 0.6)
    ),
    url('/assets/images/authentication/bg-authentication.png');
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.auth-layout__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 100px;
  background-color: #ffffff;
  max-width: 650px;
  flex: 1;
}

.auth-layout__logo {
  height: 34px;
  margin-bottom: 20px;
}

.auth-layout__title {
  font-family: 'Butler Regular', serif;
  font-weight: 400;
  font-size: 39px;
  line-height: 45px;
  letter-spacing: 1px;
  text-transform: capitalize;
  color: #252525;
  margin-bottom: 10px;
}

.auth-layout__subtitle {
  font-family: 'Proxima Nova Medium', sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: #000000;
}

.auth-layout__error {
  font-family: 'Proxima Nova Regular', sans-serif;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 400;
  color: #ff0000;
}

.auth-layout__error:empty {
  display: none;
}

/* Login form */
.login-form {
  width: 100%;
  max-width: 344px;
  margin-top: 1rem;
}

.form-group {
  margin-bottom: 0.8rem;
}

.form-group label {
  font-family: 'Proxima Nova Regular', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #000000;
  display: block;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #979797;
  font-size: 16px;
  box-sizing: border-box;
  font-family: 'Proxima Nova Regular', sans-serif;
  font-weight: 300;
  line-height: 22px;
  color: #000000;
  margin-top: 4px;
}

.form-group input:focus {
  outline: none;
  border-color: #950057;
}

.form-group__error {
  font-family: 'Proxima Nova Regular', sans-serif;
  margin-top: 6px;
  font-size: 15px;
  color: #ff0000;
}

.form-group__error:empty {
  display: none;
}

.form-options {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 31px;
}

.link-forgot-password {
  font-family: 'Proxima Nova Regular', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 23px;
  text-align: right;
  text-decoration-line: underline;
  color: #950057;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.form-action {
  display: flex;
  justify-content: center;
}

.btn-sign-in {
  font-family: 'Proxima Nova Medium', sans-serif;
  width: 190px;
  height: 46px;
  padding: 10px;
  color: #ffffff;
  border: none;
  cursor: pointer;
  background: linear-gradient(98.32deg, #950057 0%, #974a9a 100.62%);
  border-radius: 5px;
  font-weight: 500;
  font-size: 13px;
  line-height: 21px;
  letter-spacing: 0.15px;
  text-transform: uppercase;
}

.btn-sign-in:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Forgot password modal */
.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  overflow: hidden;
  outline: 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
}

.modal-overlay.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-dialog {
  max-width: 500px;
  width: 100%;
  margin: 10rem auto;
  position: relative;
  display: flex;
}

.modal-content {
  flex: 1 1 auto;
  padding: 3rem 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  margin: 0.5rem;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  cursor: pointer;
  padding: 0;
  background-color: transparent;
  border: 0;
  outline: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
}

.modal-title {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  color: #212529;
}

.modal-subtitle {
  font-size: 14px;
  margin-bottom: 10px;
  color: #6c757d;
}

.modal-form {
  display: block;
  margin-top: 0;
}

.modal-input-wrapper {
  margin-top: 10px;
  margin-bottom: 20px;
  width: 100%;
  position: relative;
  text-align: left;
}

.modal-input {
  font-size: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: block;
  width: 100%;
  height: calc(2.25rem + 2px);
  padding: 0.375rem 2.5rem 0.375rem 0.75rem;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.modal-input:focus {
  outline: none;
  border-color: #950057;
}

.modal-email-icon {
  top: 10px;
  color: #878793;
  font-size: 18px;
  position: absolute;
  right: 20px;
  pointer-events: none;
  user-select: none;
}

.modal-input-error {
  font-family: 'Proxima Nova Regular', sans-serif;
  font-size: 15px;
  color: #ff0000;
  text-align: left;
  margin-top: 4px;
}

.modal-input-error:empty {
  display: none;
}

.btn-reset-password {
  cursor: pointer;
  border: none;
  background: linear-gradient(98.32deg, #950057 0%, #974a9a 100.62%);
  color: #fff;
  font-size: 14px;
  outline: none;
  padding: 0.625rem 1rem;
  min-width: 120px;
  line-height: 1.5;
  border-radius: 0.25rem;
}

.btn-reset-password:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Toast notifications (react-hot-toast style) */
.toast-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #363636;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  font-family: 'Proxima Nova Regular', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  max-width: 350px;
  animation: toast-in 0.2s ease-out;
}

.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff4b4b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast__icon svg {
  width: 12px;
  height: 12px;
  stroke: #fff;
  fill: none;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 1024px) {
  .auth-layout__image {
    display: none;
  }

  .auth-layout {
    justify-content: center;
  }

  .auth-layout__form {
    padding: 50px 24px;
    max-width: 100%;
    align-items: center;
  }
}
