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

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(98, 134, 160, 0.12), transparent 20rem),
    radial-gradient(circle at 84% 78%, rgba(70, 120, 148, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(15, 48, 68, 0.66), rgba(11, 39, 57, 0.56)),
    url("../img/people-at-a-modern-office.jpg") center/cover no-repeat;
}

.login-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 56, 0.12);
  backdrop-filter: blur(2px);
}

.login-view::after {
  content: none;
}

.login-view .login-shell {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  display: grid;
  gap: 1.5rem;
  padding: 0.4rem 0.2rem;
  filter: drop-shadow(0 22px 30px rgba(9, 14, 18, 0.28));
}

.login-view .login-shell::before,
.login-view .login-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(12px);
}

.login-view .login-shell::before {
  width: 6.8rem;
  height: 2.4rem;
  top: 3.8rem;
  left: -1.9rem;
  border-radius: 56% 44% 61% 39% / 53% 44% 56% 47%;
  background: rgba(239, 208, 175, 0.16);
}

.login-view .login-shell::after {
  width: 4.6rem;
  height: 4.6rem;
  right: -1.3rem;
  bottom: 8.8rem;
  border-radius: 63% 37% 41% 59% / 45% 64% 36% 55%;
  background: rgba(153, 183, 214, 0.12);
}

.login-view .login-orbit {
  position: absolute;
  pointer-events: none;
  border: 0;
  filter: blur(8px);
}

.login-view .login-orbit-a {
  width: 11rem;
  height: 8.5rem;
  top: -2rem;
  right: -1.8rem;
  opacity: 0.52;
  border-radius: 58% 42% 63% 37% / 42% 57% 43% 58%;
  background:
    radial-gradient(circle at 30% 35%, rgba(242, 213, 180, 0.34), transparent 38%),
    radial-gradient(circle at 68% 62%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(226, 194, 158, 0.24), rgba(226, 194, 158, 0.04));
}

.login-view .login-orbit-b {
  width: 7.5rem;
  height: 6.4rem;
  left: -2rem;
  bottom: 4rem;
  opacity: 0.36;
  border-radius: 40% 60% 35% 65% / 57% 38% 62% 43%;
  background:
    radial-gradient(circle at 38% 34%, rgba(158, 189, 220, 0.24), transparent 34%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1), transparent 22%),
    linear-gradient(135deg, rgba(117, 154, 190, 0.18), rgba(117, 154, 190, 0.03));
}

.login-view .login-hero {
  display: grid;
  gap: 0.95rem;
  justify-items: center;
  text-align: center;
  position: relative;
}

.login-view .login-brand {
  display: grid;
  gap: 0.72rem;
  justify-items: center;
  text-align: center;
  position: relative;
}

.login-view .logo-wrapper {
  width: 82px;
  height: 82px;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(238, 224, 201, 0.96), rgba(210, 184, 146, 0.88));
  border: 1px solid rgba(255, 244, 224, 0.24);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.login-view .logo-wrapper img {
  width: 68px;
}

.login-view .logo-wrapper::before,
.login-view .logo-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-view .logo-wrapper::before {
  inset: -0.55rem;
  border: 1px solid rgba(233, 214, 188, 0.24);
}

.login-view .logo-wrapper::after {
  inset: -1rem;
  border: 1px solid rgba(233, 214, 188, 0.12);
}

.login-view .login-brand h1 {
  margin: 0;
  color: #f3dec4;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.login-view .login-form-layout {
  display: grid;
  gap: 1.05rem;
  position: relative;
}

.login-view .login-form-layout::before {
  content: "";
  position: absolute;
  top: -0.35rem;
  left: 0;
  width: 5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 235, 214, 0.6), transparent);
}

.login-view .login-form-intro {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  justify-items: start;
  text-align: left;
}

.login-view .login-form-kicker {
  display: inline-block;
  padding: 0 0 0.3rem;
  border-bottom: 1px solid rgba(222, 190, 157, 0.35);
  color: #efd8bd;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-view .login-form-intro p {
  margin: 0;
  color: rgba(231, 220, 209, 0.66);
  font-size: 0.8rem;
  line-height: 1.45;
  max-width: 18rem;
}

.login-view .login-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.8rem;
}

.login-view .login-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-view .form-group {
  display: grid;
  gap: 0.42rem;
}

.login-view .form-group label {
  color: rgba(237, 216, 191, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-view .form-group > input,
.login-view .form-group .password-input-wrap {
  justify-self: center;
}

.login-view .form-group input {
  width: 100%;
  max-width: 22.5rem;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.92rem;
  background:
    linear-gradient(180deg, rgba(74, 63, 54, 0.52), rgba(60, 51, 44, 0.6));
  color: #fdf9f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.login-view .form-group input::placeholder {
  color: rgba(236, 224, 212, 0.38);
}

.login-view .form-group input:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(82, 70, 59, 0.56), rgba(66, 56, 47, 0.64));
}

.login-view .form-group input:focus {
  outline: none;
  border-width: 2px;
  border-color: rgba(255, 184, 92, 0.98);
  background:
    linear-gradient(180deg, rgba(86, 73, 61, 0.6), rgba(68, 57, 48, 0.66));
  box-shadow: 0 0 0 0.24rem rgba(255, 184, 92, 0.18);
}

.login-view .form-group input::selection {
  background: rgba(208, 170, 127, 0.34);
  color: #fffaf6;
}

.login-view input:-webkit-autofill,
.login-view input:-webkit-autofill:hover,
.login-view input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fdf9f6;
  box-shadow:
    0 0 0 1000px rgba(72, 61, 52, 0.68) inset,
    0 0 0 0.22rem rgba(215, 176, 133, 0.08);
  border: 1px solid rgba(215, 176, 133, 0.34);
  transition: background-color 9999s ease-in-out 0s;
}

.login-view .password-input-wrap {
  position: relative;
  width: 100%;
  max-width: 22.5rem;
}

.login-view .password-input-wrap input {
  max-width: none;
  padding-right: 3.2rem;
}

.login-view .password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(248, 240, 232, 0.82);
  display: grid;
  place-items: center;
  padding: 0;
}

.login-view .password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.login-view .password-toggle i {
  font-size: 1rem;
  line-height: 1;
}

.login-view .login-form-footer {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding-top: 0;
  margin-top: -0.15rem;
}

.login-view .login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(238, 220, 197, 0.82);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  justify-self: start;
  margin-top: -0.25rem;
}

.login-view .login-remember input[type="checkbox"] {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  accent-color: #c7874d;
}

.login-view .login-actions {
  display: flex;
  justify-content: center;
  width: auto;
}

.login-view .primary {
  min-width: 12rem;
  min-height: 3.05rem;
  padding: 0.84rem 1.25rem;
  border: 1px solid rgba(214, 203, 186, 0.38);
  border-radius: 0.92rem;
  background: linear-gradient(180deg, rgba(245, 238, 226, 0.98), rgba(227, 216, 198, 0.98));
  color: #2f241b;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px rgba(54, 44, 35, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -4px 0 rgba(174, 157, 132, 0.46);
  position: relative;
  overflow: hidden;
  transition: box-shadow 140ms ease, filter 140ms ease;
}

.login-view .primary:hover {
  background: linear-gradient(180deg, rgba(247, 241, 230, 0.98), rgba(232, 221, 204, 0.98));
  box-shadow:
    0 0 0 1px rgba(54, 44, 35, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -4px 0 rgba(174, 157, 132, 0.46);
}

.login-view .primary:active {
  box-shadow:
    0 0 0 1px rgba(54, 44, 35, 0.2),
    inset 0 5px 10px rgba(166, 147, 121, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  filter: brightness(0.96);
}

.login-view .primary::before {
  content: none;
}

.login-view .primary::after {
  content: none;
}

.login-view .login-help {
  margin: 0;
  width: 100%;
  padding: 0.72rem 0.95rem;
  color: #5b4316;
  background: linear-gradient(180deg, rgba(255, 244, 126, 0.99), rgba(255, 208, 46, 0.98));
  border-radius: 0;
  font-size: 0.79rem;
  line-height: 1.45;
  text-align: center;
  justify-self: center;
  position: relative;
  padding-left: 2.4rem;
}

.login-view .login-error {
  margin: 0;
  width: 100%;
  max-width: 22.5rem;
  padding: 0.82rem 0.95rem;
  border-radius: 0;
  color: #5b4316;
  background: linear-gradient(180deg, rgba(255, 244, 126, 0.99), rgba(255, 208, 46, 0.98));
  border: 0;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
  justify-self: center;
  box-shadow: none;
  position: relative;
  padding-left: 2.4rem;
}

.login-view .login-help::before,
.login-view .login-error::before {
  content: "!";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #fffaf0;
  background: rgba(162, 116, 20, 0.9);
}

@media (max-width: 640px) {
  .login-view {
    padding: 1rem;
  }

  .login-view .login-shell {
    width: 100%;
    gap: 1.15rem;
  }

  .login-view .form-group input,
  .login-view .password-input-wrap,
  .login-view .login-error {
    max-width: none;
  }

  .login-view .login-actions,
  .login-view .primary {
    width: 100%;
  }
}
