/* ================= LOGIN MODAL ================= */

.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 23, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
}

/* ================= LOGIN CARD ================= */

.center-box {
  position: relative;
  width: 100%;
  max-width: 390px;
  box-sizing: border-box;
  padding: 32px 26px 26px;

  background:
    linear-gradient(
      145deg,
      rgba(28, 37, 65, 0.98),
      rgba(11, 19, 43, 0.98)
    );

  border: 1px solid rgba(91, 192, 190, 0.25);
  border-radius: 22px;

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(91, 192, 190, 0.08);

  animation: loginModalEnter 0.25s ease;
}

/* ================= CLOSE BUTTON ================= */

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 38px;
  height: 38px;

  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(7, 18, 41, 0.8);
  color: #9aa5b4;

  border: 1px solid rgba(91, 192, 190, 0.15);
  border-radius: 50%;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;
  transition: 0.25s;
}

.modal-close:hover {
  color: #ffffff;
  background: rgba(91, 192, 190, 0.15);
  border-color: #5bc0be;
  transform: rotate(90deg);
}

/* ================= LOGIN LOGO ================= */

.login-logo {
  width: auto;
  height: 58px;
  display: block;
  margin: 0 auto 14px;
}

/* ================= LOGIN TITLE ================= */

.login-title {
  text-align: center;
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 700;
}

/* ================= LOGIN SUBTITLE ================= */

.login-subtitle {
  text-align: center;
  color: #9aa5b4;
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 24px;
}

/* ================= AUTH INPUT GROUP ================= */

.auth-input-group {
  margin-bottom: 16px;
}

.auth-input-group label {
  display: block;
  margin-bottom: 7px;

  color: #c6d2de;
  font-size: 13px;
  font-weight: 600;
}

/* ================= AUTH INPUT ================= */

.auth-input-group input {
  width: 100%;
  box-sizing: border-box;

  padding: 13px 14px;
  margin: 0;

  background: #071229;
  color: #ffffff;

  border: 1px solid rgba(91, 192, 190, 0.18);
  border-radius: 11px;

  outline: none;

  font-size: 14px;

  transition: 0.25s;
}

.auth-input-group input::placeholder {
  color: #6f7b8c;
}

.auth-input-group input:focus {
  border-color: #5bc0be;
  box-shadow:
    0 0 0 3px rgba(91, 192, 190, 0.10);
}

/* ================= PRIMARY LOGIN BUTTON ================= */

.primary-auth-btn {
  width: 100%;
  padding: 13px;

  margin-top: 4px;

  border-radius: 11px;
  border: none;

  background: #5bc0be;
  color: #071229;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;
}

.primary-auth-btn:hover {
  background: #21d4ff;
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(33, 212, 255, 0.18);
}

/* ================= DIVIDER ================= */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(91, 192, 190, 0.15);
}

.auth-divider span {
  color: #6f7b8c;
  font-size: 11px;
  font-weight: 600;
}

/* ================= CREATE ACCOUNT ================= */

.secondary-btn {
  width: 100%;
  padding: 13px;

  margin-top: 0;

  background: transparent;

  border: 1px solid rgba(91, 192, 190, 0.55);
  border-radius: 11px;

  color: #5bc0be;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.25s;
}

.secondary-btn:hover {
  background: rgba(91, 192, 190, 0.08);
  border-color: #5bc0be;
  color: #21d4ff;
}

/* ================= AUTH FOOTER ================= */

.auth-footer-text {
  margin: 20px 0 0;

  text-align: center;

  color: #6f7b8c;

  font-size: 11px;
  line-height: 1.6;
}

/* ================= 2FA SECTION ================= */

.two-factor-section {
  margin-top: 20px;
  padding: 18px;

  background: rgba(7, 18, 41, 0.7);

  border: 1px solid rgba(91, 192, 190, 0.18);
  border-radius: 14px;
}

.two-factor-section h4 {
  margin: 0 0 8px;

  color: #ffffff;
  text-align: center;
}

.two-factor-section p {
  margin: 0 0 14px;

  color: #9aa5b4;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.two-factor-section input {
  width: 100%;
  box-sizing: border-box;

  padding: 13px;

  background: #0b132b;
  color: #ffffff;

  border: 1px solid rgba(91, 192, 190, 0.2);
  border-radius: 10px;

  outline: none;
  text-align: center;

  letter-spacing: 4px;
  font-size: 18px;
}

.two-factor-section button {
  width: 100%;
  padding: 12px;

  margin-top: 10px;

  border-radius: 10px;
  border: none;

  background: #5bc0be;
  color: #071229;

  font-weight: 700;
  cursor: pointer;
}

/* ================= MODAL ANIMATION ================= */

@keyframes loginModalEnter {

  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}

/* ================= MOBILE ================= */

@media (max-width: 480px) {

  .login-modal {
    padding: 14px;
  }

  .center-box {
    max-width: 100%;
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .login-title {
    font-size: 21px;
  }

  .login-logo {
    height: 52px;
  }

}