* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: Arial, Helvetica, sans-serif;
  color: #0f172a;
  background-color: #0b1220;
  background-image: linear-gradient(
      165deg,
      rgba(11, 18, 32, 0.92) 0%,
      rgba(15, 39, 84, 0.72) 42%,
      rgba(11, 18, 32, 0.94) 100%
    ),
    url("./images/ACCCbg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.login-shell {
  width: min(400px, 92vw);
  position: relative;
  z-index: 1;
}

.login-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.08),
    0 24px 48px -12px rgba(15, 23, 42, 0.45),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.login-card h1 {
  margin: 0 0 0.45rem;
  color: #0f172a;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.gis-word {
  letter-spacing: 0.02em;
}

.gis-g {
  color: #3b82f6;
}

.gis-i {
  color: #ef4444;
}

.gis-s {
  color: #facc15;
}

.login-card p {
  margin: 0 0 0.65rem;
  color: #475569;
}

.login-card .subtitle {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #475569;
  font-weight: 500;
}

form {
  display: grid;
  gap: 0.55rem;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
}

input {
  min-height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 0 0.65rem;
  font-size: 0.9rem;
}

.login-card input {
  background: rgba(255, 255, 255, 0.97);
}

.password-row {
  position: relative;
  display: block;
}

.password-row input {
  width: 100%;
  padding-right: 2.9rem;
}

.toggle-password-btn {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-height: 34px;
  min-width: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toggle-password-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.toggle-password-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  background: #eff6ff;
  color: #0f172a;
}

.password-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-icon-slash {
  stroke-width: 2.15;
}

button {
  min-height: 36px;
  border: 0;
  border-radius: 9px;
  background: #1e3a8a;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  cursor: pointer;
} 

button:hover {
  background: #1e3a8a;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.button-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 0.95rem;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status {
  margin-top: 0.55rem;
  min-height: 1.1rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #b91c1c;
}

.back-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #b91c1c;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  font-family: Arial, sans-serif;
  text-decoration: none;
}

.back-link:hover {
  background: #991b1b;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

@media (orientation: portrait) {
  body {
    padding: 1rem 0.85rem;
    place-items: center;
  }

  .login-shell {
    width: min(360px, 90vw);
    margin-top: 0;
  }

  .login-card {
    padding: 0.9rem;
  }
}

@media (orientation: landscape) and (max-height: 700px) {
  body {
    padding: 0.6rem;
    place-items: center;
  }

  .login-shell {
    width: min(360px, 90vw);
  }

  .login-card {
    padding: 0.85rem 0.9rem;
  }

  .login-card h1 {
    font-size: 1.08rem;
  }

  .login-card .subtitle {
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
  }

  form {
    gap: 0.5rem;
  }

  input,
  button,
  .back-link {
    min-height: 36px;
    font-size: 0.88rem;
  }
}
