:root {
  --access-blue: #0C3A6D;
  --access-teal: #017778;
  --access-orange: #FF4A00;
  --access-ink: #17324D;
  --access-text: #66788A;
  --access-line: #DCE5EC;
  --access-soft: #EDF3F6;
}

body.ferpos-access-page {
  min-height: 100vh;
  margin: 0;
  background: var(--access-soft) !important;
  color: var(--access-ink);
}

.ferpos-access-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 18px;
}

.ferpos-access-frame {
  width: min(100%, 850px);
  min-height: 570px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(12, 58, 109, .10);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(12, 58, 109, .12);
}

.ferpos-access-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 36px 30px 34px;
  background: var(--access-blue);
  overflow: hidden;
}

.ferpos-access-brand-panel::before,
.ferpos-access-brand-panel::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.ferpos-access-brand-panel::before {
  left: 0;
  bottom: 0;
  width: 72%;
  height: 5px;
  background: var(--access-teal);
}

.ferpos-access-brand-panel::after {
  right: 0;
  bottom: 0;
  width: 28%;
  height: 5px;
  background: var(--access-orange);
}

.ferpos-access-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.ferpos-access-brand__plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .10);
}

.ferpos-access-brand img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 54px;
  object-fit: contain;
}

.ferpos-access-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 215px;
}

.ferpos-access-accent {
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--access-orange);
}

.ferpos-access-brand-copy p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 23px;
  line-height: 1.34;
  letter-spacing: -.025em;
  font-weight: 700;
}

.ferpos-access-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 46px 42px;
  background: #fff;
}

.ferpos-access-form-topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 22px;
}

.ferpos-access-back {
  color: #718294;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ferpos-access-back:hover,
.ferpos-access-back:focus-visible {
  color: var(--access-teal);
  text-decoration: underline;
}

.ferpos-access-card-wrap {
  width: 100%;
  max-width: 420px !important;
  margin: 0 auto;
}

.ferpos-login-card {
  overflow: visible;
  background: transparent;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ferpos-login-card .card-body {
  padding: 0 !important;
}

.ferpos-login-head {
  position: relative;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--access-line);
}

.ferpos-login-head::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 58px;
  height: 2px;
  background: var(--access-teal);
}

.ferpos-login-head::after {
  content: '';
  position: absolute;
  left: 64px;
  bottom: -1px;
  width: 22px;
  height: 2px;
  background: var(--access-orange);
}

.ferpos-login-head h1 {
  margin: 0;
  color: var(--access-blue);
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: -.035em;
  font-weight: 800;
}

.ferpos-login-head p {
  margin: 7px 0 0;
  color: var(--access-text);
  font-size: 14px;
  line-height: 1.5;
}

.ferpos-login-form {
  display: grid;
  gap: 16px;
}

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

.ferpos-login-field__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ferpos-login-card .form-label {
  margin: 0;
  color: var(--access-ink);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 750;
}

.ferpos-login-card .form-control,
.ferpos-login-card .form-select {
  min-height: 50px;
  padding-left: 14px;
  padding-right: 14px;
  border: 1px solid #C8D4DE;
  border-radius: 10px;
  background: #fff;
  color: var(--access-ink);
  font-size: 15px;
  box-shadow: 0 1px 0 rgba(12,58,109,.02);
}

.ferpos-login-card .form-control:hover,
.ferpos-login-card .form-select:hover {
  border-color: #AFC0CD;
}

.ferpos-login-card .form-control:focus,
.ferpos-login-card .form-select:focus {
  border-color: var(--access-teal);
  box-shadow: 0 0 0 3px rgba(1,119,120,.09);
}

.ferpos-login-card .form-control::placeholder {
  color: #94A3B1;
}

.ferpos-login-recovery {
  color: var(--access-blue);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}

.ferpos-login-recovery:hover {
  color: var(--access-teal);
  text-decoration: underline;
}

.ferpos-password-control {
  position: relative;
}

.ferpos-password-control .form-control {
  padding-right: 76px;
}

.ferpos-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 58px;
  height: 34px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: var(--access-blue);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ferpos-password-toggle:hover,
.ferpos-password-toggle:focus-visible {
  color: var(--access-teal);
  outline: 0;
  text-decoration: underline;
}

.ferpos-login-card .access-captcha-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 5px 8px;
  margin: 0 !important;
}

.ferpos-login-card .access-captcha-block > .form-label {
  grid-column: 1 / -1;
}

.ferpos-login-card .landing-captcha-box {
  min-height: 46px;
  margin: 0;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--access-line);
  border-radius: 10px;
  background: #F7F9FA;
  overflow: hidden;
}

.ferpos-login-card .landing-captcha-box svg {
  max-width: 100%;
  max-height: 50px;
}

.ferpos-login-card .access-captcha-input {
  min-height: 46px;
  margin: 0;
  padding-top: 6px;
  padding-bottom: 6px;
  letter-spacing: .12em;
  font-size: 18px;
  font-weight: 850;
  text-align: center;
}

.ferpos-login-card .access-captcha-visual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 5px;
  min-width: 0;
}

.access-captcha-refresh {
  min-width: 38px;
  width: 38px;
  min-height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--access-line, #D4DEE5);
  border-radius: 10px;
  background: #fff;
  color: var(--access-blue, #0C3A6D);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.access-captcha-refresh svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-captcha-refresh:hover,
.access-captcha-refresh:focus-visible {
  border-color: var(--access-teal, #0B8C95);
  color: var(--access-teal, #0B8C95);
  background: #F7FBFC;
  outline: 0;
}

.access-captcha-refresh:disabled {
  opacity: .55;
  cursor: wait;
}

.ferpos-login-submit {
  min-height: 50px;
  width: 100%;
  margin-top: 2px;
  border-radius: 10px !important;
  background: var(--access-blue) !important;
  border-color: var(--access-blue) !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(12,58,109,.16);
}

.ferpos-login-submit:hover,
.ferpos-login-submit:focus {
  background: var(--access-teal) !important;
  border-color: var(--access-teal) !important;
  color: #fff !important;
}

.ferpos-login-register {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 2px 0 0 !important;
  padding-top: 3px;
  text-align: center;
}

.ferpos-login-register span,
.ferpos-login-register a {
  font-size: 12px;
}

.ferpos-login-register span {
  color: #7C8B99;
}

.ferpos-login-register a {
  color: var(--access-blue);
  font-weight: 800;
  text-decoration: none;
}

.ferpos-login-register a:hover {
  color: var(--access-teal);
  text-decoration: underline;
}

.ferpos-login-recovery-row {
  display: flex;
  justify-content: center;
  margin-top: 2px;
  text-align: center;
}

.ferpos-login-recovery-row .ferpos-login-recovery {
  font-size: 12px;
  font-weight: 800;
}


.ferpos-login-card .alert,
.ferpos-access-card-wrap > .alert {
  border-radius: 10px;
  font-size: 13px;
}

.ferpos-login-card .btn-outline-dark,
.ferpos-login-card .access-selector-option {
  border-radius: 10px !important;
}

.access-hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .ferpos-access-shell {
    align-items: flex-start;
    padding: 18px 12px;
  }

  .ferpos-access-frame {
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .ferpos-access-brand-panel {
    min-height: 112px;
    padding: 18px 22px 20px;
  }

  .ferpos-access-brand__plate {
    min-height: 66px;
    padding: 9px 13px;
    border-radius: 12px;
  }

  .ferpos-access-brand img {
    max-width: 158px;
    max-height: 44px;
  }

  .ferpos-access-brand-copy {
    display: none;
  }

  .ferpos-access-form-panel {
    padding: 24px 22px 28px;
  }

  .ferpos-access-form-topbar {
    margin-bottom: 18px;
  }
}

@media (max-width: 480px) {
  .ferpos-access-shell {
    padding: 0;
  }

  .ferpos-access-frame {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ferpos-access-brand-panel {
    min-height: 96px;
    padding: 15px 18px 17px;
  }

  .ferpos-access-brand__plate {
    min-height: 60px;
  }

  .ferpos-access-brand img {
    max-width: 145px;
    max-height: 40px;
  }

  .ferpos-access-form-panel {
    justify-content: flex-start;
    padding: 22px 18px 30px;
  }

  .ferpos-login-head {
    margin-bottom: 22px;
    padding-bottom: 17px;
  }

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

  .ferpos-login-card .access-captcha-block {
    grid-template-columns: 1fr;
  }

  .ferpos-login-card .access-captcha-block > .form-label {
    grid-column: auto;
  }
}


/* FERPOS Login V17.3 — logo centrado y blanco */
.ferpos-access-brand-panel {
  align-items: center;
}

.ferpos-access-brand {
  width: 100%;
  justify-content: center;
}

.ferpos-access-brand__plate {
  min-height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ferpos-access-brand img {
  max-width: 204px;
  max-height: 62px;
  filter: brightness(0) invert(1);
}

.ferpos-access-brand-copy {
  width: 100%;
  max-width: 215px;
}

@media (max-width: 767px) {
  .ferpos-access-brand-panel {
    align-items: center;
  }

  .ferpos-access-brand {
    justify-content: center;
  }

  .ferpos-access-brand img {
    max-width: 172px;
    max-height: 48px;
  }
}

@media (max-width: 480px) {
  .ferpos-access-brand img {
    max-width: 156px;
    max-height: 44px;
  }
}

.ferpos-login-card .landing-captcha-box img,
.ferpos-register-card .landing-captcha-box img {
  display: block;
  max-width: 100%;
  height: 50px;
  width: auto;
  user-select: none;
}
.access-block-notice {
  display: grid;
  gap: .35rem;
  margin: 0 0 1rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(180, 35, 24, .22);
  border-radius: 16px;
  background: #fff6f5;
  color: #7a271a;
}
.access-block-notice strong { font-weight: 850; }
.access-block-notice span,
.access-block-notice small { color: #912018; }
.access-block-notice a { color: #0c3a6d; font-weight: 800; text-decoration: none; }
.access-block-notice a:hover { text-decoration: underline; }
