* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.login-page {
  min-height: 100vh;
  color: #f7f3ee;
  background: #141414;
  overflow: hidden;
  position: relative;
}

.login-page::before {
  content: "";
  position: fixed;
  top: -24px;
  right: -24px;
  bottom: -24px;
  left: -24px;
  background:
    linear-gradient(135deg, rgba(15, 17, 20, 0.68), rgba(55, 34, 34, 0.6)),
    var(--login-background-image, url("photos/agathaf1.jpg")) center center / cover no-repeat;
  filter: blur(14px);
  opacity: 0.72;
  transform: scale(1.04);
  animation: loginBackgroundFade 12s ease-in-out infinite alternate;
}

.login-page::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(10, 10, 10, 0.5);
}

@keyframes loginBackgroundFade {
  from {
    opacity: 0.58;
  }
  to {
    opacity: 0.76;
  }
}

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

.login-panel {
  width: 100%;
  max-width: 390px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(19, 19, 20, 0.76);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.brand {
  text-align: center;
  margin-bottom: 30px;
}

.brand img {
  max-width: 230px;
  width: 82%;
  height: auto;
}

.brand p {
  margin: 12px 0 0;
  color: rgba(247, 243, 238, 0.72);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 190, 120, 0.38);
  border-radius: 6px;
  background: rgba(255, 150, 80, 0.14);
  color: #ffe7cf;
  font-size: 14px;
}

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

.login-form label {
  color: rgba(247, 243, 238, 0.82);
  font-size: 14px;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 16px;
  outline: none;
}

.login-form input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

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

.password-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 38px;
  height: 34px;
  margin: 0;
  border: 0;
  border-radius: 5px;
  color: rgba(247, 243, 238, 0.86);
  background: transparent;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus {
  background: rgba(255, 255, 255, 0.1);
}

.login-form > button {
  min-height: 48px;
  margin-top: 14px;
  border: 0;
  border-radius: 6px;
  color: #1a1512;
  background: #f4dfc3;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.login-form > button:hover,
.login-form > button:focus {
  background: #fff0d9;
}

.secondary-login-action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: rgba(247, 243, 238, 0.86);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.secondary-login-action:hover,
.secondary-login-action:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
}

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

  .login-panel {
    padding: 26px 22px;
  }
}
