.login-page {
  background: #021321;
  color: #f3fcff;
}

.egg-login {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
  justify-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 36px 20px;
  position: relative;
}

.egg-login [hidden] {
  display: none !important;
}

.egg-login__ocean {
  background: #021321 url(/auth/login-ocean-landscape-v2.png) center / cover no-repeat;
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

.egg-login__card {
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  background: linear-gradient(145deg, rgba(18, 87, 109, 0.73), rgba(4, 36, 55, 0.83) 48%, rgba(1, 54, 70, 0.77));
  border: 1px solid rgba(137, 231, 250, 0.6);
  border-radius: 27px;
  box-shadow: 0 24px 80px rgba(0, 5, 18, 0.45), 0 0 38px rgba(0, 209, 233, 0.1), inset 0 0 22px rgba(129, 235, 255, 0.08);
  max-width: 100%;
  min-width: 0;
  padding: 31px 30px 34px;
  position: relative;
  width: 370px;
}

.egg-login__card::before {
  background: linear-gradient(135deg, rgba(205, 252, 255, 0.9), rgba(57, 202, 233, 0.1) 27%, transparent 40% 66%, rgba(99, 238, 255, 0.8));
  border-radius: inherit;
  content: "";
  inset: -1px;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  padding: 1px;
  pointer-events: none;
  position: absolute;
}

.egg-login__heading {
  margin-bottom: 31px;
  text-align: center;
}

.egg-login__lock {
  color: #e6fbff;
  filter: drop-shadow(0 0 9px rgba(110, 235, 255, 0.24));
  height: 39px;
  margin: 0 auto 16px;
  width: 32px;
}

.egg-login__lock svg {
  display: block;
  height: 100%;
  width: 100%;
}

.egg-login__heading h1 {
  color: #f3fcff;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 7px;
}

.egg-login__heading p {
  color: #d3e8ef;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.egg-login__form {
  display: grid;
  gap: 19px;
}

.egg-login__label {
  color: #e9f7fc;
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 7px;
}

.egg-login__input {
  appearance: none;
  background: linear-gradient(120deg, rgba(108, 192, 214, 0.18), rgba(134, 218, 236, 0.22));
  border: 1px solid rgba(144, 221, 239, 0.36);
  border-radius: 16px;
  box-shadow: inset 0 1px 8px rgba(157, 235, 255, 0.06), 0 0 12px rgba(30, 178, 211, 0.07);
  color: #f4fdff;
  display: block;
  font: inherit;
  font-size: 14px;
  height: 47px;
  outline: none;
  padding: 0 17px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.egg-login__input::placeholder {
  color: #bad4df;
  opacity: 1;
}

.egg-login__input:hover {
  border-color: rgba(163, 236, 253, 0.6);
}

.egg-login__input:focus {
  background-color: rgba(70, 182, 209, 0.12);
  border-color: #7feaff;
  box-shadow: 0 0 0 3px rgba(45, 219, 243, 0.14);
}

.egg-login__input[aria-invalid="true"] {
  border-color: #f0a4a0;
}

.egg-login__input:-webkit-autofill {
  -webkit-text-fill-color: #effaff;
  box-shadow: inset 0 0 0 100px #174a60;
  caret-color: #effaff;
}

.egg-login__password {
  position: relative;
}

.egg-login__password .egg-login__input {
  padding-right: 49px;
}

.egg-login__visibility {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #d6edf6;
  cursor: pointer;
  display: flex;
  height: 43px;
  justify-content: center;
  padding: 10px;
  position: absolute;
  right: 3px;
  top: 2px;
  width: 43px;
}

.egg-login__visibility:hover {
  color: #fff;
}

.egg-login__visibility svg {
  height: 22px;
  width: 22px;
}

.egg-login__remember {
  align-items: center;
  color: #d9ebf2;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  gap: 9px;
  justify-self: start;
  line-height: 1.5;
  min-height: 24px;
}

.egg-login__remember input {
  accent-color: #18dce4;
  appearance: none;
  background: rgba(11, 53, 72, 0.4);
  border: 1px solid #b7dce7;
  border-radius: 4px;
  cursor: pointer;
  height: 17px;
  margin: 0;
  position: relative;
  width: 17px;
}

.egg-login__remember input:checked {
  background: #1edee3;
  border-color: #1edee3;
}

.egg-login__remember input:checked::after {
  border: solid #003b4c;
  border-width: 0 2px 2px 0;
  content: "";
  height: 9px;
  left: 5px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 5px;
}

.egg-login__submit {
  align-items: center;
  appearance: none;
  background: linear-gradient(100deg, #0ce4e4, #00ccd9);
  border: 1px solid rgba(90, 250, 255, 0.35);
  border-radius: 17px;
  box-shadow: 0 6px 24px rgba(0, 218, 232, 0.24), inset 0 1px rgba(210, 255, 255, 0.24);
  color: #003849;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  transition: box-shadow 200ms ease, filter 200ms ease, transform 200ms ease;
  width: 100%;
}

.egg-login__submit:hover {
  box-shadow: 0 8px 32px rgba(0, 228, 239, 0.35), inset 0 1px rgba(210, 255, 255, 0.24);
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.egg-login__submit:active {
  transform: translateY(0);
}

.egg-login__submit:disabled {
  cursor: progress;
  filter: saturate(0.65);
  transform: none;
}

.egg-login__submit svg {
  height: 21px;
  transition: transform 200ms ease;
  width: 21px;
}

.egg-login__submit:hover svg {
  transform: translateX(3px);
}

.egg-login__visibility:focus-visible,
.egg-login__remember input:focus-visible,
.egg-login__submit:focus-visible {
  outline: 2px solid #baf8ff;
  outline-offset: 4px;
}

.egg-login__submit-spinner {
  animation: eggLoginSpin 700ms linear infinite;
  border: 2px solid rgba(0, 56, 73, 0.25);
  border-radius: 50%;
  border-top-color: currentColor;
  height: 18px;
  width: 18px;
}

.egg-login__feedback {
  background: rgba(42, 135, 150, 0.2);
  border: 1px solid rgba(125, 223, 240, 0.3);
  border-radius: 12px;
  color: #e0f7ff;
  font-size: 13px;
  line-height: 1.5;
  margin: -10px 0 20px;
  padding: 11px 13px;
}

.egg-login__feedback--error {
  background: rgba(100, 35, 44, 0.35);
  border-color: rgba(255, 169, 169, 0.45);
  color: #ffe1df;
}

@keyframes eggLoginSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .egg-login { padding: 24px 18px; }
  .egg-login__card { padding: 29px 25px 30px; width: 350px; }
  .egg-login__heading h1 { font-size: 29px; }
  .egg-login__input { font-size: 16px; }
}

@media (max-width: 600px) and (orientation: portrait) {
  .egg-login { align-items: start; padding-top: clamp(260px, 44svh, 420px); }
  .egg-login__ocean { background-image: url(/auth/login-ocean-portrait-v2.png); }
}

@media (max-height: 580px) and (min-width: 601px) {
  .egg-login { padding: 20px; }
  .egg-login__card { padding-top: 22px; padding-bottom: 24px; }
  .egg-login__heading { margin-bottom: 22px; }
  .egg-login__lock { margin-bottom: 10px; }
  .egg-login__form { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .egg-login *,
  .egg-login *::before,
  .egg-login *::after { animation: none !important; transition: none !important; }
}
