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

:root {
  --carbon: #262d36;
  --blue-1: #0089c5;
  --blue-2: #00b1e0;
  --green-1: #38c757;
  --green-2: #80d76c;
  --orange-1: #fc7f1e;
  --orange-2: #feaf38;
  --text-soft: #d9e3ea;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
}

.login-page {
  position: relative;
  min-height: 100vh;
  background: url("../../public/assets/images/login_bg.png") no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.background-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(16, 22, 28, 0.82),
      rgba(38, 45, 54, 0.72)
    );
  backdrop-filter: blur(3px);
}

.login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(20, 28, 36, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 42px 34px;
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(16px);
}

.logo-box {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo-nexus {
  width: 240px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-header h1 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.login-header p {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group label {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0 15px;
  font-size: 0.98rem;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  outline: none;
  transition: 0.25s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.form-group input:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(0, 177, 224, 0.18);
  background: rgba(255, 255, 255, 0.14);
}

.login-message {
  min-height: 20px;
  font-size: 0.92rem;
  color: #ffb3b3;
  text-align: center;
}

.btn-login {
  height: 52px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  margin-top: 4px;
  letter-spacing: 0.2px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 137, 197, 0.35);
}

.btn-login:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .login-card {
    max-width: 390px;
    padding: 34px 24px;
  }

  .logo-nexus {
    width: 205px;
  }

  .login-header h1 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 16px;
  }

  .login-card {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .logo-nexus {
    width: 180px;
  }

  .login-header h1 {
    font-size: 1.45rem;
  }

  .login-header p {
    font-size: 0.92rem;
  }

  .form-group input,
  .btn-login {
    height: 46px;
  }
}

.login-footer-text {
  margin-top: 10px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.hidden {
  display: none !important;
}

.password-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.password-modal-card {
  width: 100%;
  max-width: 460px;
  background: rgba(20, 28, 36, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 34px 30px;
  box-shadow:
    0 22px 65px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.password-modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.password-modal-header h2 {
  color: #ffffff;
  font-size: 1.7rem;
  margin-bottom: 10px;
}

.password-modal-header p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}