:root {
  --brand: #152e7d;
  --brand-soft: #b5c2ef;
  --bg: #efefef;
  --curve: #152e7d;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #f4c33f;
  --input: #d7dbe2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.brand-panel {
  position: relative;
  min-height: 42vh;
  background: var(--bg);
  overflow: hidden;
  display: none;
}

.curve-outline {
  position: absolute;
  width: 150%;
  height: 132%;
  left: -80%;
  top: -12%;
  border-radius: 50%;
  background: var(--brand-soft);
  z-index: 0;
}

.curve-overlay {
  position: absolute;
  width: 130%;
  height: 130%;
  left: -70%;
  top: -12%;
  border-radius: 50%;
  border: 0;
  background: var(--curve);
  z-index: 1;
}

.brand-content {
  position: relative;
  z-index: 2;
  color: #fff;
  height: 100%;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.brand-logo {
  width: clamp(300px, 38vw, 500px);
  height: auto;
  margin-bottom: 8px;
  max-width: 100%;
}

.brand-content h1 {
  margin: 0;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.4px;
}

.brand-content p {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
  opacity: 0.95;
}

.form-panel {
  display: grid;
  place-items: center;
  padding: 24px 18px 34px;
  background: var(--bg);
}

.form-wrap {
  width: 100%;
  max-width: 420px;
}

.mobile-logo {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  filter: brightness(0) saturate(100%) invert(20%) sepia(49%) saturate(1881%) hue-rotate(206deg) brightness(90%) contrast(95%);
}

.form-wrap h2 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 28px;
  line-height: 1.15;
}

.form-wrap h3 {
  margin: 0 0 12px;
  font-size: 22px;
  color: var(--brand);
}

.error-box {
  border: 1px solid #ef4444;
  color: #991b1b;
  background: #fee2e2;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 8px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  height: 42px;
  border: 1px solid var(--input);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  outline: none;
}

input:focus {
  border-color: #8da4eb;
}

.password-wrap {
  position: relative;
}

#toggle-password {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
}

.remember {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 14px;
}

.submit-btn {
  margin-top: 4px;
  width: fit-content;
  min-width: 150px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}

.submit-btn:hover {
  filter: brightness(0.96);
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-right-in {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 980px) {
  .login-shell {
    grid-template-columns: 56% 44%;
  }

  .brand-panel {
    display: block;
    animation: panel-fade-in 0.35s ease-out both;
  }

  .brand-panel {
    min-height: 100vh;
  }

  .form-panel {
    place-items: center;
  }

  .mobile-logo {
    display: none;
  }

  .curve-overlay,
  .curve-outline {
    animation: slide-right-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    will-change: transform, opacity;
  }

  .curve-outline {
    animation-delay: 0.04s;
  }

  .brand-logo {
    animation: slide-right-in 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: 0.1s;
    will-change: transform, opacity;
  }

  .curve-overlay {
    width: 120%;
    height: 140%;
    left: -40%;
    top: -20%;
  }

  .curve-outline {
    width: 122%;
    height: 142%;
    left: -42%;
    top: -22%;
  }

  .brand-content {
    align-items: flex-start;
    text-align: left;
    padding-left: 18%;
    padding-right: 14%;
  }

  .brand-logo {
    width: clamp(220px, 24vw, 380px);
    margin-top: 0px;
  }

  .form-wrap {
    max-width: 460px;
  }

  .form-wrap h2 {
    font-size: 36px;
  }

  .form-wrap h3 {
    font-size: 30px;
    margin-bottom: 16px;
  }
}
