@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Medium.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Bold.ttf") format("truetype");
  font-weight: 800 900;
  font-display: swap;
}

:root {
  --login-brand: #277fe9;
  --login-brand-dark: #00178f;
  --login-text: #101828;
  --login-muted: #74829d;
  --login-border: #dce4f1;
}

* {
  box-sizing: border-box;
}

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

body,
button,
input {
  font-family: "Gilroy", ui-sans-serif, system-ui, sans-serif;
}

body {
  background: #ffffff;
  color: var(--login-text);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(430px, 42%) minmax(0, 1fr);
}

.login-access {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 64px) clamp(30px, 6vw, 92px);
  background: #ffffff;
  box-shadow: 18px 0 48px rgba(14, 31, 70, 0.08);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.login-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--login-brand-dark), #4b96ff);
  box-shadow: 0 12px 26px rgba(39, 127, 233, 0.24);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.login-brand small {
  margin-top: 3px;
  color: var(--login-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.login-form-wrap {
  width: min(100%, 430px);
  margin: auto 0;
  padding: 64px 0;
}

.login-heading > span {
  color: var(--login-brand);
  font-size: 0.7rem;
  font-weight: 900;
}

.login-heading h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
}

.login-heading p {
  margin: 0;
  color: var(--login-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

#loginForm {
  display: grid;
  gap: 17px;
  margin-top: 34px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field[hidden],
.password-guidance[hidden] {
  display: none;
}

.login-field > span {
  color: #344054;
  font-size: 0.78rem;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--login-border);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: var(--login-text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-field input:focus {
  border-color: rgba(39, 127, 233, 0.72);
  box-shadow: 0 0 0 4px rgba(39, 127, 233, 0.1);
}

.show-password-control {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #526078;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.show-password-control input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--login-brand);
}

.password-guidance,
.login-status {
  margin: -5px 0 0;
  color: var(--login-muted);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.45;
}

.login-status {
  min-height: 18px;
  color: #d93662;
  font-weight: 800;
}

.login-status.is-neutral {
  color: var(--login-muted);
}

.login-submit {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2f8df6, #176bd5);
  box-shadow: 0 13px 26px rgba(39, 127, 233, 0.24);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.login-submit:hover:not(:disabled) {
  box-shadow: 0 16px 32px rgba(39, 127, 233, 0.31);
  transform: translateY(-1px);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-security-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--login-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.login-security-note > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20c997;
  box-shadow: 0 0 0 5px rgba(32, 201, 151, 0.1);
}

.login-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #eaf2fb;
}

.login-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.login-visual-caption {
  position: absolute;
  right: clamp(28px, 5vw, 72px);
  bottom: clamp(30px, 5vw, 64px);
  max-width: 390px;
  padding: 18px 20px;
  border-left: 3px solid #2f8df6;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 38px rgba(14, 31, 70, 0.14);
  backdrop-filter: blur(12px);
}

.login-visual-caption strong,
.login-visual-caption span {
  display: block;
}

.login-visual-caption strong {
  font-size: 1rem;
  font-weight: 900;
}

.login-visual-caption span {
  margin-top: 5px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

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

  .login-access {
    min-height: 100vh;
    padding: 28px clamp(24px, 8vw, 64px);
  }

  .login-form-wrap {
    width: min(100%, 460px);
    margin: auto;
    padding: 48px 0;
  }

  .login-visual {
    display: none;
  }
}
