:root {
  --login-red: #ca444a;
  --login-ink: #172238;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--login-ink);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.62);
  outline-offset: 3px;
}

.login-page {
  min-height: 100vh;
  background: #eef2f7;
}

.login-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 3rem 1.25rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(103, 111, 201, 0.15), transparent 28%),
    radial-gradient(circle at 88% 76%, rgba(109, 164, 91, 0.12), transparent 25%),
    linear-gradient(145deg, #ffffff 0%, #f4f7fa 53%, #e9eff6 100%);
}

.login-shell::before {
  position: absolute;
  inset: -8%;
  background: url("../Media/pinclues-map.svg") center / cover no-repeat;
  content: "";
  opacity: 0.1;
  filter: saturate(0.55) contrast(0.9);
  transform: rotate(-3deg) scale(1.06);
}

.login-shell::after {
  position: absolute;
  right: -10rem;
  bottom: -10rem;
  width: 36rem;
  height: 23rem;
  border: 1px solid rgba(79, 115, 168, 0.15);
  border-radius: 50%;
  content: "";
  transform: rotate(-14deg);
}

.login-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.login-orb-one {
  top: 11%;
  right: 13%;
  width: 10rem;
  height: 10rem;
  background: rgba(202, 68, 74, 0.09);
}

.login-orb-two {
  bottom: 8%;
  left: 15%;
  width: 6rem;
  height: 6rem;
  background: rgba(109, 164, 91, 0.12);
}

.login-content {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--login-ink);
  font-size: clamp(1.75rem, 5vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.045em;
}

.login-brand img {
  filter: drop-shadow(0 8px 16px rgba(23, 34, 56, 0.14));
}

.login-device {
  position: relative;
  padding: 9px;
  border: 3px solid #202d46;
  border-radius: 40px;
  background: #162137;
  box-shadow: 0 38px 80px rgba(21, 33, 55, 0.25);
}

.login-device-top {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 3;
  width: 102px;
  height: 27px;
  border-radius: 0 0 17px 17px;
  background: #162137;
  transform: translateX(-50%);
}

.login-device-top span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #56647c;
  transform: translateX(-50%);
}

.login-screen {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  padding: 4.75rem 2rem 2rem;
  border-radius: 31px;
  background:
    radial-gradient(circle at 82% 15%, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(155deg, #6c74cc 0%, #4f73a8 48%, #355680 100%);
}

.login-screen::before,
.login-screen::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
  content: "";
}

.login-screen::before {
  top: -92px;
  right: -90px;
  width: 250px;
  height: 250px;
}

.login-screen::after {
  bottom: -110px;
  left: -90px;
  width: 275px;
  height: 275px;
}

.login-form {
  position: relative;
  z-index: 2;
  margin-top: 4.5rem;
}

.login-form h1 {
  margin: 0 0 0.55rem;
  color: white;
  font-size: 2.25rem;
  font-weight: 820;
  letter-spacing: -0.045em;
}

.login-note {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.91rem;
  line-height: 1.55;
}

.login-field + .login-field {
  margin-top: 0.9rem;
}

.login-field label {
  display: block;
  margin: 0 0 0.38rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-weight: 750;
}

.login-field input {
  width: 100%;
  min-height: 62px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--login-ink);
  box-shadow: 0 10px 28px rgba(22, 33, 55, 0.1);
}

.login-field input:focus {
  border-color: white;
  outline: 0;
  background: white;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.2), 0 12px 30px rgba(22, 33, 55, 0.14);
}

.login-button {
  width: 100%;
  margin-top: 1.15rem;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 14px;
  background: var(--login-red);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(113, 35, 41, 0.3);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-button:hover,
.login-button:focus-visible {
  background: #b83b41;
  box-shadow: 0 17px 34px rgba(95, 29, 34, 0.36);
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .login-shell {
    padding: 1.5rem 1rem;
  }

  .login-brand {
    margin-bottom: 1rem;
  }

  .login-brand img {
    width: 50px;
    height: 50px;
  }

  .login-device {
    border-radius: 34px;
  }

  .login-screen {
    min-height: 490px;
    padding: 4.2rem 1.25rem 1.35rem;
    border-radius: 26px;
  }

  .login-form {
    margin-top: 3.7rem;
  }
}
