/* Login page — split-screen modern UI */
*, *::before, *::after { box-sizing: border-box; }

.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  background: #eef1f8;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.login-page__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.45;
  pointer-events: none;
}

.login-page__bg-shape--1 {
  width: 280px;
  height: 280px;
  background: #ffd54a;
  top: -80px;
  left: -60px;
}

.login-page__bg-shape--2 {
  width: 220px;
  height: 220px;
  background: #7ecbff;
  bottom: -60px;
  right: 10%;
}

.login-page__bg-shape--3 {
  width: 160px;
  height: 160px;
  background: #ff9a8b;
  top: 20%;
  right: -40px;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(26, 58, 140, 0.14);
  min-height: 580px;
}

.login-brand {
  position: relative;
  padding: 2rem 1.75rem 1.5rem;
  background: linear-gradient(145deg, #1a3a8c 0%, #2b59c3 55%, #1a5632 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.login-brand__carousel {
  position: relative;
  flex: 1;
  min-height: 380px;
  z-index: 1;
}

.login-brand__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.login-brand__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.login-brand__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.login-brand__dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
}

.login-brand__dot--1 { width: 12px; height: 12px; background: #ffd54a; top: 18%; left: 12%; }
.login-brand__dot--2 { width: 8px; height: 8px; background: #ff6b6b; top: 28%; right: 18%; }
.login-brand__dot--3 { width: 10px; height: 10px; background: #69f0ae; bottom: 35%; left: 20%; }
.login-brand__dot--4 { width: 14px; height: 14px; background: #ffb347; bottom: 22%; right: 14%; }

.login-brand__cards {
  position: relative;
  min-height: 220px;
}

.login-brand__card {
  position: absolute;
  background: rgba(255,255,255,.95);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  color: #1a3a8c;
  padding: 0.85rem 1rem;
  transition: transform 0.45s ease;
}

.login-brand__slide.is-active .login-brand__card--main {
  animation: loginCardIn 0.55s ease 0.1s both;
}

.login-brand__slide.is-active .login-brand__card--sub {
  animation: loginCardIn 0.55s ease 0.22s both;
}

@keyframes loginCardIn {
  from { opacity: 0; transform: translateY(12px) rotate(-3deg); }
  to { opacity: 1; }
}

.login-brand__card--main {
  width: 78%;
  top: 10%;
  left: 8%;
  transform: rotate(-3deg);
}

.login-brand__card--sub {
  width: 62%;
  bottom: 8%;
  right: 6%;
  transform: rotate(4deg);
  padding: 0.65rem 0.85rem;
}

.login-brand__card strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
}

.login-brand__card span {
  font-size: 0.65rem;
  color: #6b7280;
  line-height: 1.4;
}

.login-brand__card em {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #eef3ff;
  color: #1a3a8c;
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
}

.login-brand__text {
  position: relative;
  z-index: 1;
}

.login-brand__text h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 800;
}

.login-brand__text p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(255,255,255,.88);
}

.login-brand__dots {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.login-brand__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.login-brand__dots button.is-active {
  background: #ffd54a;
  width: 18px;
  border-radius: 999px;
}

.login-form-panel {
  padding: 2.25rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-form-panel__logo {
  margin: 0 auto 1rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form-panel__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(15, 35, 79, 0.22);
}

.login-form-panel h1 {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #111827;
}

.login-form-panel__sub {
  margin: 0 0 1.35rem;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.5;
}

.login-field {
  margin-bottom: 0.85rem;
}

.login-field__wrap {
  position: relative;
}

.login-field__wrap i {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.9rem;
  pointer-events: none;
}

.login-field select,
.login-field input {
  width: 100%;
  height: 46px;
  padding: 0 2.5rem 0 0.95rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f3f4f6;
  font-family: inherit;
  font-size: 0.84rem;
  color: #111827;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.login-field select:focus,
.login-field input:focus {
  outline: none;
  border-color: #2b59c3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 89, 195, 0.12);
}

.login-field select {
  appearance: none;
  cursor: pointer;
}

.login-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.25rem 0 1rem;
  font-size: 0.75rem;
}

.login-actions a {
  color: #2b59c3;
  font-weight: 600;
  text-decoration: none;
}

.login-actions a:hover {
  text-decoration: underline;
}

.login-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #1a3a8c, #2b59c3);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 8px 18px rgba(43, 89, 195, 0.28);
}

.login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(43, 89, 195, 0.35);
}

.login-error {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.78rem;
  text-align: center;
}

.login-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: #6b7280;
}

.login-footer a {
  color: #2b59c3;
  font-weight: 700;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.login-footer__links a {
  font-weight: 600;
}

@media (max-width: 768px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-brand {
    min-height: 220px;
    padding: 1.5rem;
  }

  .login-brand__carousel {
    min-height: 280px;
  }

  .login-brand__cards {
    min-height: 160px;
  }

  .login-brand__card--main {
    width: 85%;
    top: 5%;
  }

  .login-brand__card--sub {
    display: none;
  }

  .login-form-panel {
    padding: 1.75rem 1.35rem;
  }
}
