:root {
  --lime: #b6c900;
  --lime-dark: #9caf00;
  --ink: #374247;
  --muted: #687378;
  --line: #c9c9c9;
  --surface: #ffffff;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #2f3f48;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: url("login-bg-nuve.png") center / cover no-repeat fixed;
}

button,
input {
  font: inherit;
}

.login-page {
  min-height: 100vh;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(36px, 7vh, 42px) 18px 28px;
}

.login-shell {
  width: min(100%, 528px);
  display: grid;
  gap: 22px;
  justify-items: center;
}

.brand {
  display: flex;
  justify-content: center;
}

.brand-logo {
  width: min(104px, 34vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.24));
}

.login-card {
  width: 100%;
  min-height: 272px;
  padding: 18px 44px 14px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 48px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.field {
  display: grid;
  grid-template-columns: 144px 206px;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.field label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-transform: uppercase;
}

.field label span {
  display: block;
}

.field input {
  width: 100%;
  height: 34px;
  min-height: 34px;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 5px 9px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(182, 201, 0, 0.18);
}

.assistive {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
  padding-left: 64px;
}

.button {
  min-width: 102px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 8px 18px 7px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--lime);
  border-color: var(--lime);
}

.button-primary:hover {
  background: var(--lime-dark);
}

.button-secondary {
  color: #fff;
  background: var(--lime);
  border-color: var(--lime);
}

.button-secondary:hover {
  background: var(--lime-dark);
}

.support-link {
  width: 282px;
  margin: 46px 0 0 auto;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.page-footer {
  color: #fff;
  margin-top: 34px;
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}

.page-footer nav {
  display: grid;
  gap: 2px;
  margin-bottom: 2px;
  color: #fff;
  font-weight: 700;
}

.page-footer p {
  margin: 7px 0 0;
  font-weight: 400;
}

@media (max-width: 520px) {
  .login-page {
    align-items: start;
    padding-top: 30px;
  }

  .login-shell {
    gap: 18px;
  }

  .login-card {
    min-height: 0;
    padding: 26px 24px 24px;
    border-radius: 34px;
  }

  .field {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }

  .field label {
    text-align: left;
  }

  .field label span {
    display: inline;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
    gap: 10px;
  }

  .button {
    min-width: 0;
    width: 100%;
  }

  .support-link {
    width: auto;
    margin: 24px 0 0;
    text-align: center;
  }
}
