/* loginPop.css */

:root {
  --auth-red: #bf2829;
  --auth-red-hover: #9e201f;
  --auth-red-disabled: #dba09f;
  --auth-text-dark: #1a1a1a;
  --auth-text-gray: #9a9a9a;
  --auth-border: #BFBFBF;
  --auth-placeholder: #adadad;
  --auth-icon: #4a4a4a;
}

/* ---------- Popup Full Screen Container ---------- */

.loginPop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 140px 16px 140px;
  font-family: 'Nunito', sans-serif;
  overflow-y: auto;
  box-sizing: border-box;
  animation: popupIn 0.25s ease-out forwards;
}

/* ---------- Modal Card ---------- */

.login-card {
  position: relative;
  width: 100%;
  max-width: 343px;
  background: #ffffff;
  border: 0.5px solid var(--auth-border);
  border-radius: 28px;
  padding: 36px 20px 32px;
  box-shadow: 0px 6px 20px 6px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  overflow: visible;
}

/* ---------- Keyframe Animations ---------- */

@keyframes popupIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes popupOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.96);
  }
}

/* ---------- House Illustration ---------- */

.house-illustration {
  position: absolute;
  top: -85px;
  left: -20px;
  width: 175px;
  height: auto;
  transform: rotate(-12deg);
  z-index: -1;
  pointer-events: none;
  user-select: none;
}

/* ---------- Logo & Title ---------- */

.auth-logo {
  display: block;
  width: 30px;
  height: auto;
  margin: 0 auto 16px;
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--auth-text-dark);
  text-align: center;
  margin: 0 0 24px;
  font-family: inherit;
}

/* ---------- Form & Inputs ---------- */

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-card .input-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  border: 0.5px solid var(--auth-border);
  border-radius: 30px;
  padding: 0 18px;
  background: #ffffff;
  box-sizing: border-box;
}

.login-card .input-field input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--auth-text-dark);
  padding-left: 12px;
  min-width: 0;
}

.login-card .input-field input::placeholder {
  color: var(--auth-placeholder);
}

.login-card .input-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  object-fit: contain;
  opacity: 0.6;
}

/* ---------- Password toggle ---------- */

.login-card .toggle-visibility-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-card .icon-eye {
  width: 20px;
  height: 20px;
  display: inline-block;
  object-fit: contain;
  opacity: 0.5;
}

/* ---------- Login button ---------- */

.login-card .login-btn {
  display: block;
  width: 160px;
  height: 52px;
  margin: 10px auto 0;
  border: none;
  border-radius: 30px;
  background: var(--auth-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login-card .login-btn:hover {
  background: var(--auth-red-hover);
}

.login-card .login-btn:disabled {
  background: var(--auth-red-disabled);
  cursor: not-allowed;
}

/* ---------- Forgot password ---------- */

.login-card .forgot-password {
  text-align: center;
  font-size: 13px;
  color: var(--auth-text-dark);
  margin: 4px 0 0;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.login-card .forgot-password:hover {
  text-decoration: underline;
}

/* ---------- Hubini button ---------- */

.login-card .hubini-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  margin: 10px auto 0;
  padding: 10px 22px;
  border: 0.5px solid var(--auth-border);
  border-radius: 30px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #999999;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.login-card .hubini-btn:hover {
  border-color: #c0c0c0;
}

.login-card .hubini-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ---------- Footer text (Outside card on background) ---------- */

.login-footer {
  font-size: 13px;
  color: #737373;
  text-align: center;
  margin: 18px 0 0;
  position: relative;
  z-index: 2;
}

.login-footer a {
  color: var(--auth-red);
  font-weight: 700;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ---------- Desktop (860px+) ---------- */

@media (min-width: 860px) {
  .loginPop {
    padding: 100px 24px 100px;
    justify-content: center;
  }

  .login-card {
    max-width: 350px;
    padding: 22px 28px 20px;
    border-radius: 28px;
  }

  .auth-logo {
    width: 26px;
    margin: 0 auto 10px;
  }

  .login-title {
    font-size: 24px;
    margin-bottom: 18px;
  }

  .login-card form {
    gap: 10px;
  }

  .login-card .input-field {
    height: 48px;
  }

  .login-card .login-btn {
    height: 48px;
    margin-top: 6px;
  }

  .login-card .forgot-password {
    margin-top: 2px;
  }

  .login-card .hubini-btn {
    margin-top: 6px;
    padding: 8px 20px;
  }

  .house-illustration {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(0deg);
    width: 150px;
    z-index: 1;
  }
}
