html,
body.finance-app {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #f3f6f4;
  color: #143028;
  font-family: "Prompt", "Segoe UI", sans-serif;
}

body.finance-app {
  overflow: hidden;
}

.login-shell {
  display: flex;
  min-height: 100%;
  height: 100%;
}

.login-hero {
  position: relative;
  flex: 1.15;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 48px 56px 52px;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(6, 36, 26, 0.9) 0%, rgba(10, 58, 40, 0.72) 46%, rgba(8, 32, 48, 0.62) 100%),
    url("../../../public/images/bg.jpg") center / cover no-repeat;
  overflow: hidden;
}

.login-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(232, 185, 35, 0.35);
  box-shadow: 0 0 0 40px rgba(232, 185, 35, 0.06);
  pointer-events: none;
}

.login-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-hero-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.login-uni {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #f3d78a;
}

.login-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(30px, 2.6vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.login-hero-sub {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.86);
}

.login-highlights {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-highlights li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.login-highlights i {
  color: #f3d78a;
}

.login-main {
  flex: 0 0 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(15, 107, 69, 0.08), transparent 42%),
    #f7faf8;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 28px;
  background: #fff;
  border: 1px solid rgba(16, 40, 31, 0.06);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(16, 40, 31, 0.08);
}

.login-logo {
  display: none;
}

.login-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #0f6b45;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.login-card h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #10281f;
}

.login-lead {
  margin: 8px 0 28px;
  font-size: 15px;
  font-weight: 400;
  color: #5d7268;
}

.login-sso {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f6b45 0%, #148a58 100%);
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 24px rgba(15, 107, 69, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-sso:hover,
.login-sso:focus {
  background: linear-gradient(135deg, #0c5a3a 0%, #0f6b45 100%);
  box-shadow: 0 16px 28px rgba(15, 107, 69, 0.34);
  transform: translateY(-1px);
  outline: none;
}

.login-sso:focus-visible {
  box-shadow: 0 0 0 4px rgba(15, 107, 69, 0.25), 0 12px 24px rgba(15, 107, 69, 0.28);
}

.login-sso-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.login-sso-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.login-sso-text strong {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.login-sso-brand {
  white-space: nowrap;
}

.login-sso-text small {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

.login-sso-arrow {
  font-size: 14px;
  opacity: 0.85;
}

.login-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f1;
  color: #b42318;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.login-alert i {
  margin-top: 2px;
}

.login-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid #e3ebe6;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  color: #6b7f76;
}

.login-note i {
  margin-top: 3px;
  color: #0f6b45;
}

@media (max-width: 1100px) {
  .login-hero {
    padding: 36px 28px 32px;
  }

  .login-hero h2 {
    font-size: 28px;
  }

  .login-main {
    flex-basis: 420px;
  }
}

@media (max-width: 900px) {
  html,
  body.finance-app {
    height: auto;
    min-height: 100%;
  }

  body.finance-app {
    overflow: auto;
  }

  .login-shell {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .login-hero {
    flex: none;
    padding: 28px 22px 24px;
    justify-content: flex-start;
  }

  .login-hero-logo {
    width: 72px;
    height: 72px;
  }

  .login-hero h2 {
    font-size: 28px;
    white-space: normal;
  }

  .login-hero-sub,
  .login-uni {
    font-size: 13px;
  }

  .login-highlights {
    display: none;
  }

  .login-main {
    flex: 1;
    padding: 28px 20px 40px;
  }

  .login-card h1 {
    font-size: 28px;
  }
}

@media (max-width: 420px) {
  .login-card {
    padding: 28px 20px 22px;
  }

  .login-sso-text strong {
    font-size: 15px;
  }

  .login-sso-text small {
    display: none;
  }
}
