@font-face {
  font-family: OclumInter;
  src: url("/oclum-inter.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #061b2a;
  --blue: #1e7ec2;
  --sky: #55cee3;
  --ink: #171b20;
  --muted: #4b5563;
  --footer: #1a1a1a;
  --footerText: #9ca3af;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: #ffffff;
  color: var(--ink);
  font-family: OclumInter, Inter, Roboto, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(6, 27, 42, 0.08);
}

.topbar {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 26px;
  color: #354250;
  font-size: 13px;
  font-weight: 800;
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.logo-link img {
  width: 292px;
  max-height: 66px;
  height: auto;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #05080c;
  font-size: 16px;
  font-weight: 700;
}

.menu a:hover,
.topbar a:hover {
  color: var(--blue);
}

.banner {
  height: 300px;
  display: flex;
  align-items: center;
  padding: 0 26px;
  background:
    linear-gradient(90deg, rgba(26, 26, 26, 0.84), rgba(26, 26, 26, 0.58)),
    url("/oclum-login-banner.webp") center center / cover no-repeat;
}

.banner h1 {
  width: min(1280px, 100%);
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(38px, 4vw, 48px);
  line-height: 1;
  font-weight: 900;
}

.login-main {
  display: flex;
  justify-content: center;
  padding: 28px 22px 72px;
}

.login-card {
  width: min(760px, 100%);
  padding: 54px 64px 62px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.82), rgba(10, 12, 18, 0.82)),
    url("/oclum-login-banner.webp") center center / cover no-repeat;
}

.login-title {
  margin-bottom: 30px;
  color: #ffffff;
  text-align: center;
}

.login-title h2 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 44px);
  line-height: 1.08;
  font-weight: 900;
}

.login-title p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

form {
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.sso-opening {
  width: min(520px, 100%);
  min-height: 96px;
  margin: 0 auto;
  display: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: rgba(30, 126, 194, 0.88);
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

html.pretrp-sso-pending #loginForm {
  display: none;
}

html.pretrp-sso-pending .login-title p {
  display: none;
}

html.pretrp-sso-pending .sso-opening {
  display: grid;
}

label {
  display: grid;
  gap: 9px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  outline: none;
  font-size: 16px;
}

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

.password-wrap input {
  padding-right: 54px;
}

#togglePassword {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
}

#togglePassword:hover,
#togglePassword:focus-visible {
  background: rgba(30, 126, 194, 0.1);
  color: var(--blue);
  outline: none;
}

#togglePassword svg {
  width: 21px;
  height: 21px;
}

#togglePassword .eye-off {
  display: none;
}

#togglePassword.showing .eye-on {
  display: none;
}

#togglePassword.showing .eye-off {
  display: block;
}

.message {
  min-height: 18px;
  color: #ffd8d8;
  font-size: 13px;
  font-weight: 800;
}

.login-button {
  height: 46px;
  border: 0;
  border-radius: 2px;
  background: var(--blue);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.login-button:hover {
  background: #16679f;
}

.login-button:disabled {
  opacity: 0.72;
  cursor: default;
}

.return-pretrp-button {
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.return-pretrp-button:hover,
.return-pretrp-button:focus-visible {
  background: rgba(30, 126, 194, 0.42);
  border-color: #ffffff;
  outline: none;
}

.return-pretrp-button[hidden] {
  display: none;
}

.site-footer {
  background: var(--footer);
  color: var(--footerText);
}

.footer-main {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 26px;
  padding: 60px 20px;
}

.footer-brand {
  padding-right: 70px;
}

.footer-brand img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 0 18px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.footer-main h6 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.footer-main a {
  display: block;
  margin: 0 0 8px;
}

.footer-main a:hover,
.footer-bottom a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

@media (max-width: 920px) {
  .topbar {
    justify-content: center;
  }

  .menu {
    display: none;
  }

  .login-card {
    padding: 48px 28px 56px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .topbar {
    display: none;
  }

  .nav {
    justify-content: center;
  }

  .logo-link img {
    width: 236px;
  }

  .banner {
    height: 230px;
  }

  .login-main {
    padding: 18px 14px 48px;
  }

  .login-card {
    padding: 42px 18px 48px;
    border-radius: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    padding: 42px 20px;
  }
}
