.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.login-box {
  width: 100%;
  max-width: 420px;
  padding: 24px 22px 22px;
  border-radius: 26px;
  background: linear-gradient(
    160deg,
    rgba(59, 71, 91, 0.95),
    rgba(47, 58, 77, 0.96)
  );
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
}

.login-title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 10px;
  color: #fff;
}

.login-subtitle {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
}

.login-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.login-error,
.login-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.login-error,
.login-alert--error {
  background: rgba(255, 90, 90, 0.14);
  border: 1px solid rgba(255, 90, 90, 0.22);
  color: #ffd6d6;
}

.login-alert--success {
  background: rgba(90, 200, 120, 0.14);
  border: 1px solid rgba(90, 200, 120, 0.22);
  color: #d9ffe4;
}

.login-form .form-group {
  margin-bottom: 18px;
}

.login-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.login-form input {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 18px;
  background: rgba(235, 241, 250, 0.92);
  color: #111827;
  font-size: 1rem;
  padding: 0 18px;
  outline: none;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.login-form input:focus {
  box-shadow:
    inset 0 0 0 2px rgba(91, 140, 255, 0.55),
    0 0 0 3px rgba(91, 140, 255, 0.12);
}

.login-form input::placeholder {
  color: rgba(17, 24, 39, 0.45);
}

.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(17, 24, 39, 0.55);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.password-toggle:hover {
  background: rgba(17, 24, 39, 0.06);
}

.login-submit {
  display: block;
  width: 68%;
  min-width: 220px;
  margin: 22px auto 0;
  height: 50px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #5b8cff, #4e7fe6);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(34, 92, 210, 0.28);
}

.login-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.login-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 205px;
  height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.login-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

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

  .login-box {
    max-width: 100%;
    padding: 26px 22px 24px;
    border-radius: 26px;
  }

  .login-title {
    font-size: 1.8rem;
  }

  .login-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .login-form .form-group {
    margin-bottom: 16px;
  }

  .login-form label {
    font-size: 0.88rem;
    margin-bottom: 7px;
  }

  .login-form input {
    height: 56px;
    border-radius: 16px;
    font-size: 0.98rem;
    padding: 0 16px;
  }

  .password-wrap input {
    padding-right: 52px;
  }

  .password-toggle {
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }

  .login-submit {
    width: 82%;
    min-width: 0;
    height: 56px;
    margin-top: 20px;
    border-radius: 16px;
    font-size: 0.98rem;
  }

  .login-actions {
    justify-content: center;
  }

  .login-secondary-btn {
    min-width: 0;
    width: 100%;
    height: 46px;
    border-radius: 16px;
  }
}
