:root {
  --sodi-blue-1: #005579;
  --sodi-blue-2: #001f4d;
  --sodi-yellow: #FBA600;
  --muted: rgba(255, 255, 255, 0.78);
  --border: rgba(255, 255, 255, 0.18);
  --r-md: 14px;
  --r-lg: 22px;
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overscroll-behavior-y: auto;
}

html {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(0, 31, 77, 0.92), rgba(0, 85, 121, 0.78)),
    url("/assets/images/bg_general.png") no-repeat center center fixed;
  background-size: cover;
  background-color: #001f4d;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: #fff;
  background: transparent;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  background: transparent;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100svh - 24px);
  padding: 34px 34px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  position: relative;
  overflow: auto;
  animation: fadeUp 0.6s ease forwards;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 35% 18%, rgba(255, 255, 255, 0.1), transparent 60%),
    radial-gradient(620px 320px at 70% 90%, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.login-card > * {
  position: relative;
  z-index: 1;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  text-align: center;
  margin-bottom: 18px;
}

.brand__logo {
  width: 160px;
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.3));
}

.brand__name {
  margin: 4px 0 8px;
  line-height: 1;
  color: #ffffff;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 3px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand__subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.form {
  margin-top: 10px;
}

.field {
  margin-bottom: 12px;
}

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

.input {
  width: 100%;
  height: 46px;
  font-size: 15px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  padding: 0 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.input:focus {
  border-color: rgba(251, 166, 0, 0.7);
  box-shadow: 0 0 0 4px rgba(251, 166, 0, 0.2);
  background: rgba(255, 255, 255, 0.14);
}

.input.error {
  border-color: rgba(255, 70, 70, 0.7);
  box-shadow: 0 0 0 4px rgba(255, 70, 70, 0.2);
}

.field--password {
  position: relative;
  width: 100%;
}

.field--password .input {
  padding-right: 46px;
}

.eye {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.eye:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-50%) scale(1.03);
}

.btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, var(--sodi-yellow), #ffd36a);
  color: #1c1405;
  box-shadow: 0 16px 34px rgba(251, 166, 0, 0.22);
  transition: transform 0.08s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  filter: brightness(1.02);
  box-shadow: 0 20px 45px rgba(251, 166, 0, 0.26);
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  box-shadow: none;
}

.login-alert {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 70, 70, 0.35);
  background: rgba(255, 70, 70, 0.16);
  color: #ffe9e9;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.login-error.is-hidden {
  display: none;
}

.login-register-link {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.login-register-link a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.login-register-link a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .page {
    padding: 20px 12px;
    background-attachment: scroll;
  }

  .login-card {
    max-width: 470px;
    padding: 28px 22px 22px;
  }

  .brand__logo {
    width: 138px;
  }

  .brand__name {
    font-size: 36px;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 12px 10px;
    align-items: center;
  }

  .login-card {
    max-width: 420px;
    padding: 20px 14px 16px;
    border-radius: 18px;
  }

  .brand {
    margin-bottom: 10px;
  }

  .brand__name {
    margin: 2px 0 5px;
    font-size: 30px;
    letter-spacing: 1.2px;
  }

  .brand__logo {
    width: 106px;
    margin-bottom: 6px;
  }

  .brand__subtitle {
    margin: 0 0 10px;
    font-size: 11.5px;
    letter-spacing: 0.35px;
  }

  .form {
    margin-top: 6px;
  }

  .field {
    margin-bottom: 10px;
  }

  .input {
    height: 42px;
    font-size: 16px;
  }

  .btn {
    height: 46px;
  }

  .eye {
    width: 32px;
    height: 32px;
    right: 10px;
  }
}
