:root {
  --login-bg-top: #0a2f57;
  --login-bg-bottom: #15528d;

  --login-card-bg: rgba(255, 255, 255, 0.94);
  --login-card-border: rgba(255, 255, 255, 0.18);

  --login-title: #123b72;
  --login-text: #5f6f86;
  --login-input-border: #d2d9e3;
  --login-input-bg: #ffffff;

  --login-button: rgb(0, 54 , 98);
  --login-button-hover: rgb(41, 93, 150);

  --login-shadow: 0 24px 48px rgba(5, 20, 40, 0.22);
  --login-radius-xl: 28px;
  --login-radius-lg: 20px;
  --login-radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Inter", sans-serif;
}

body {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.10), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(180deg, var(--login-bg-top) 0%, var(--login-bg-bottom) 100%);
  color: white;
  overflow-x: hidden;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding: 32px 20px;
  position: relative;
}

.login-page::before,
.login-page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
  opacity: 0.22;
}

.login-page::before {
  width: 460px;
  height: 460px;
  background: rgba(255, 255, 255, 0.12);
  top: -120px;
  left: -120px;
}

.login-page::after {
  width: 380px;
  height: 380px;
  background: rgba(255, 255, 255, 0.10);
  bottom: -120px;
  right: -100px;
}

.login-hero {
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-hero__logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

.login-hero__title {
  margin: 0 0 8px;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.login-hero__subtitle {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 400;
}

.login-container {
  width: 100%;
  max-width: 520px;
  position: relative;
  z-index: 1;
}

.login-box {
  background: var(--login-card-bg);
  border: 1px solid var(--login-card-border);
  border-radius: var(--login-radius-xl);
  padding: 30px 30px 26px;
  box-shadow: var(--login-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-box__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.login-box__logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.login-box__brand-text h2 {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--login-title);
}

.login-box__brand-text p {
  margin: 0;
  font-size: 14px;
  color: var(--login-text);
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--login-title);
}

.input-group input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border-radius: var(--login-radius-md);
  border: 1px solid var(--login-input-border);
  background: var(--login-input-bg);
  color: #21344d;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.input-group input::placeholder {
  color: #8a97aa;
}

.input-group input:focus {
  outline: none;
  border-color: var(--login-button);
  box-shadow: 0 0 0 4px rgba(55, 113, 176, 0.14);
}

button[type="submit"] {
  margin-top: 6px;
  height: 50px;
  border: none;
  border-radius: var(--login-radius-md);
  background: linear-gradient(135deg, var(--login-button) 0%, var(--login-button-hover) 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 12px 24px rgba(41, 93, 150, 0.26);
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(41, 93, 150, 0.32);
}

button[type="submit"]:active {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error {
  min-height: 22px;
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #c0392b;
}

@media (max-width: 768px) {
  .login-page {
    gap: 26px;
    padding: 24px 16px;
  }

  .login-hero__logo {
    width: 66px;
    height: 66px;
    margin-bottom: 14px;
  }

  .login-hero__title {
    font-size: 36px;
  }

  .login-hero__subtitle {
    font-size: 17px;
  }

  .login-container {
    max-width: 100%;
  }

  .login-box {
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .login-box__brand {
    gap: 12px;
    margin-bottom: 20px;
  }

  .login-box__logo {
    width: 50px;
    height: 50px;
  }

  .login-box__brand-text h2 {
    font-size: 24px;
  }

  .input-group input,
  button[type="submit"] {
    height: 48px;
  }
}

@media (max-width: 480px) {
  .login-hero__title {
    font-size: 30px;
  }

  .login-hero__subtitle {
    font-size: 15px;
  }

  .login-box__brand {
    align-items: flex-start;
  }

  .login-box__brand-text h2 {
    font-size: 22px;
  }

  .login-box__brand-text p {
    font-size: 13px;
  }
}