* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #080c12;
}

body {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: auto;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(31, 111, 235, 0.12),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #0b1017 0%,
      #080c12 100%
    );
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

.login-box {
  width: 100%;
  max-width: 430px;
  padding: 42px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(21, 27, 36, 0.97);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.48),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.login-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(47, 128, 237, 0.8),
    transparent
  );
}

.login-box form {
  width: 100%;
}

.login-box h1,
.login-box h2 {
  color: #ffffff;
}

.login-box p {
  color: #98a2b3;
}

.login-box label {
  user-select: none;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  display: block;
  border: 1px solid #303846;
  border-radius: 10px;
  outline: none;
  color: #f8fafc;
  background: #111720;
  font-size: 15px;
  line-height: 1;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input:hover {
  border-color: #465163;
  background: #131b26;
}

input:focus {
  border-color: #2f80ed;
  background: #131b26;
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.14);
}

input::placeholder {
  color: #667085;
  opacity: 1;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc;
  caret-color: #f8fafc;
  box-shadow: 0 0 0 1000px #111720 inset;
  transition: background-color 9999s ease-in-out 0s;
}

button {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid #2f80ed;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    #2f80ed 0%,
    #216bd1 100%
  );
  box-shadow:
    0 12px 26px rgba(31, 111, 235, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

button:hover {
  border-color: #4192ff;
  background: linear-gradient(
    180deg,
    #3b8cf4 0%,
    #2874dc 100%
  );
  box-shadow:
    0 15px 30px rgba(31, 111, 235, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(47, 128, 237, 0.2),
    0 12px 26px rgba(31, 111, 235, 0.22);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.links {
  width: 100%;
  text-align: center;
}

.links a {
  color: #4ea8ff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color 150ms ease;
}

.links a:hover {
  color: #7bc0ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  body {
    padding: 24px 14px;
    align-items: flex-start;
  }

  .login-box {
    max-width: 100%;
    margin: auto 0;
    padding: 32px 24px;
    border-radius: 15px;
  }

  input,
  button {
    min-height: 50px;
  }
}

@media (max-height: 720px) {
  body {
    align-items: flex-start;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .login-box {
    margin: auto 0;
  }
}