/* Flaiver — sign-in page */

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: #EBEEF3;
  font-family: 'IBM Plex Sans', sans-serif;
}

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

/* ── Left: brand panel ── */
.auth-brand {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #122238;
  color: #fff;
  padding: 46px 52px;
}

.auth-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-glow-top {
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(229, 137, 58, 0.28), transparent 68%);
}

.auth-glow-bottom {
  bottom: -120px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(74, 120, 196, 0.16), transparent 68%);
}

.auth-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1;
}

.auth-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #E5893A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: #122238;
  line-height: 1;
}

.auth-logo-word {
  font-weight: 600;
  font-size: 17px;
  color: #fff;
}

.auth-copy {
  position: relative;
  z-index: 1;
  max-width: 430px;
}

.auth-copy h1 {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.6px;
  color: #fff;
}

.auth-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #AFBED0;
}

.auth-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #7E90A6;
}

.auth-dot {
  color: #4A5B70;
}

/* ── Right: form panel ── */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 32px 24px;
}

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

.auth-form-wrap h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #12233A;
}

.auth-sub {
  margin: 0 0 26px;
  font-size: 13.5px;
  color: #66768A;
}

.auth-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FBEDED;
  border: 1px solid #F0D3D3;
  border-radius: 10px;
  padding: 11px 13px;
  margin-bottom: 20px;
  color: #B0433D;
  font-size: 12.5px;
}

.auth-error svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.auth-field {
  margin-bottom: 18px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #7A8A9C;
}

.auth-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-field-row label {
  margin-bottom: 7px;
}

.auth-link-forgot {
  font-size: 12px;
  font-weight: 500;
  color: #C46A1B;
  text-decoration: none;
  margin-bottom: 7px;
}

.auth-link-forgot:hover {
  color: #9A4C0E;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 17px;
  color: #9AA7B6;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  padding: 11px 12px 11px 38px;
  border: 1px solid #D6DEE8;
  border-radius: 10px;
  background: #FBFCFD;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13.5px;
  color: #16273D;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.auth-input-wrap input::placeholder {
  color: #9AA7B6;
}

.auth-input-wrap input:focus {
  border-color: #E5893A;
  background: #fff;
}

.auth-input-wrap input[type="password"] {
  padding-right: 38px;
}

.auth-eye-toggle {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: none;
  border: none;
  color: #9AA7B6;
  cursor: pointer;
}

.auth-eye-toggle svg {
  width: 16px;
  height: 16px;
}

.auth-eye-toggle:hover {
  color: #66768A;
}

.auth-eye-icon-off {
  display: none;
}

.auth-eye-toggle.is-visible .auth-eye-icon-on {
  display: none;
}

.auth-eye-toggle.is-visible .auth-eye-icon-off {
  display: block;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 22px;
  cursor: pointer;
  font-size: 13px;
  color: #4A5B70;
  user-select: none;
}

.auth-remember input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 19px;
  height: 19px;
  margin: 0;
  cursor: pointer;
}

.auth-checkbox-box {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #C3CDD9;
  background: #FBFCFD;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.auth-checkbox-box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.15s;
}

.auth-remember input[type="checkbox"]:checked + .auth-checkbox-box {
  background: #E5893A;
  border-color: #E5893A;
}

.auth-remember input[type="checkbox"]:checked + .auth-checkbox-box svg {
  opacity: 1;
}

.auth-remember input[type="checkbox"]:focus-visible + .auth-checkbox-box {
  outline: 2px solid #E5893A;
  outline-offset: 2px;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 11px;
  background: #E5893A;
  color: #122238;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(229, 137, 58, 0.32);
  cursor: pointer;
  transition: filter 0.15s, opacity 0.15s;
}

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

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-footer-line {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
  color: #66768A;
}

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

  .auth-brand {
    padding: 32px 28px;
  }

  .auth-copy {
    margin: 28px 0;
  }

  .auth-copy h1 {
    font-size: 26px;
  }

  .auth-foot {
    display: none;
  }
}
