/* F.I.A. compact login */
* {
  box-sizing: border-box;
}

:root {
  --ink: #142033;
  --muted: #66738a;
  --line: #dbe4ef;
  --blue: #004aad;
  --blue-dark: #063a85;
  --teal: #0f9aa6;
  --field: #f7f9fc;
  --white: #ffffff;
}

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

body {
  min-height: 100svh;
  margin: 0;
  padding: clamp(22px, 4vh, 48px);
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(15, 154, 166, 0.14), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(0, 74, 173, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #eef4fb 52%, #e8eef6 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(7, 31, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 31, 61, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.95), transparent 72%);
}

.login-shell {
  width: min(980px, calc(100vw - 64px));
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  overflow: hidden;
  border: 1px solid rgba(190, 203, 220, 0.78);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(14, 32, 55, 0.18);
}

.brand-panel {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  padding: 48px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 24%, rgba(15, 154, 166, 0.4), transparent 28%),
    linear-gradient(145deg, #071f3d 0%, #0b3261 58%, #053b55 100%);
}

.brand-panel::before {
  content: '';
  position: absolute;
  inset: 42px 46px auto auto;
  width: min(58%, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.035),
    0 0 0 86px rgba(255, 255, 255, 0.024),
    inset 0 0 90px rgba(15, 154, 166, 0.16);
}

.brand-panel::after {
  content: '';
  position: absolute;
  inset: auto -18% -24% 26%;
  height: 330px;
  transform: rotate(-6deg);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 26px);
  opacity: 0.42;
}

.brand-copy {
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.brand-copy h1 {
  max-width: 460px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.45rem, 4.4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.brand-copy p {
  max-width: 440px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-logo-watermark {
  width: min(360px, 72%);
  margin: 30px 0 0;
  opacity: 0.24;
  mix-blend-mode: screen;
  filter: drop-shadow(0 24px 54px rgba(0, 0, 0, 0.22));
}

.hero-logo-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

.auth-panel {
  min-height: 560px;
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), #ffffff 34%);
}

.login-header {
  margin: 0 0 34px;
}

.login-header h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 2.15rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.login-form {
  width: 100%;
}

.input-group {
  margin-bottom: 21px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #2f3b4f;
  font-size: 0.9rem;
  font-weight: 800;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper > i {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  transform: translateY(-50%);
  color: var(--blue);
  opacity: 0.86;
}

.input-group input {
  width: 100%;
  min-height: 54px;
  padding: 15px 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.input-group input::placeholder {
  color: #9aa6b8;
  font-weight: 600;
}

.input-group input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.13);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.password-toggle:hover,
.password-toggle:focus {
  background: rgba(0, 74, 173, 0.1);
  color: #002f7d;
}

.btn {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(0, 74, 173, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 32px rgba(0, 74, 173, 0.32);
}

.error-message {
  margin: 0 0 24px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 4px solid #e53e3e;
  border-radius: 12px;
  background: #fff1f1;
  color: #9b1c1c;
  font-weight: 700;
  line-height: 1.45;
}

.footer-text {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
}

.footer-text i {
  color: var(--teal);
}

@media (max-width: 940px) {
  body {
    padding: 24px;
  }

  .login-shell {
    width: min(680px, calc(100vw - 48px));
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: 310px;
    padding: 36px;
  }

  .brand-copy h1 {
    max-width: 520px;
    font-size: clamp(2.1rem, 6vw, 3.2rem);
  }

  .hero-logo-watermark {
    width: min(270px, 58%);
    margin-top: 22px;
  }

  .auth-panel {
    min-height: auto;
    padding: 40px 36px;
  }
}

@media (max-width: 576px) {
  body {
    padding: 14px;
    background:
      radial-gradient(circle at 14% 12%, rgba(15, 154, 166, 0.13), transparent 28%),
      linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
  }

  .login-shell {
    width: 100%;
    min-height: auto;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(14, 32, 55, 0.16);
  }

  .brand-panel {
    min-height: 255px;
    padding: 28px 24px;
  }

  .brand-panel::before {
    width: 220px;
    inset: 18px -52px auto auto;
  }

  .brand-copy h1 {
    max-width: 320px;
    font-size: 2.05rem;
  }

  .brand-copy p {
    max-width: 330px;
    margin-top: 16px;
    font-size: 0.9rem;
  }

  .hero-logo-watermark {
    width: 190px;
    margin-top: 18px;
  }

  .auth-panel {
    padding: 32px 22px;
  }
}
