/* Login minimalista */
.auth-main {
  flex: 1;
  min-height: calc(100vh - 64px - 120px);
  display: grid;
  place-items: center;
  background: #ffffff;
  padding: 96px 20px 72px;
}

.auth-main--signin {
  min-height: calc(100vh - 64px - 120px);
}

.auth-panel {
  width: min(390px, 100%);
  margin: 0 auto;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 138px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.auth-form {
  width: 100%;
}

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

.auth-label {
  display: block;
  margin-bottom: 9px;
  color: #0b1b33;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

.auth-input {
  width: 100%;
  height: 46px;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  background: #ffffff;
  color: #0b1b33;
  font-size: 14px;
  line-height: 1.2;
  padding: 0 14px;
  outline: none;
  box-shadow: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-input::placeholder {
  color: #718096;
}

.auth-input:focus {
  border-color: #b9c6d8;
  box-shadow: 0 0 0 3px rgba(28, 45, 82, .08);
}

.auth-passwrap {
  position: relative;
}

.auth-passwrap .auth-input {
  padding-right: 48px;
}

.auth-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #61708a;
  cursor: pointer;
}

.auth-toggle:hover,
.auth-toggle:focus-visible {
  color: #0b1b33;
  background: #f3f6fa;
  outline: none;
}

.caps-hint {
  margin-top: 7px;
  color: #9a6700;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
}

.auth-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #0b1b33;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.auth-btn:hover,
.auth-btn:focus-visible {
  background: #10264a;
  outline: none;
}

.auth-btn:active {
  transform: translateY(1px);
}

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  text-align: center;
}

.auth-links a {
  color: #5f6f89;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
}

.auth-links a b {
  color: #4a5a72;
  font-weight: 700;
}

.auth-links a:hover,
.auth-links a:focus-visible {
  color: #0b1b33;
  text-decoration: none;
  outline: none;
}

@media (max-width: 576px) {
  .auth-main {
    min-height: calc(100vh - 58px - 120px);
    padding: 72px 18px 56px;
  }

  .auth-logo {
    width: 122px;
  }

  .auth-panel {
    width: min(100%, 360px);
  }
}

@media (max-height: 720px) {
  .auth-main {
    align-items: start;
    padding-top: 56px;
  }

  .auth-brand {
    margin-bottom: 20px;
  }
}

.auth-panel--password-change { width: min(470px, 100%); }
.auth-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.auth-heading h1 { margin: 0 0 6px; color: #0b1b33; font-size: 24px; font-weight: 700; }
.auth-heading p { margin: 0; color: #66758e; font-size: 14px; line-height: 1.5; }
.auth-security-icon { flex: 0 0 42px; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #edf3fb; color: #17365f; font-size: 18px; }
.auth-notice { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 20px; padding: 12px 14px; border: 1px solid #dce6f2; border-radius: 8px; background: #f5f8fc; color: #53637c; font-size: 13px; line-height: 1.45; }
.auth-notice i { margin-top: 2px; color: #17365f; }

/* Altura responsive estable para autenticacion */
.auth-main,.auth-main--signin{min-height:calc(100dvh - 64px - 120px)}
.auth-panel,.auth-form,.auth-group,.auth-passwrap{min-width:0;max-width:100%}
@media(max-width:576px){.auth-main{min-height:calc(100dvh - 58px - 120px);padding:56px 16px 40px}.auth-input{font-size:16px}.auth-heading{gap:12px}.auth-heading h1{font-size:22px}}
@media(max-width:360px){.auth-heading{flex-direction:column}.auth-security-icon{width:40px;height:40px;flex-basis:40px}}
@media(max-height:560px) and (orientation:landscape){.auth-main{min-height:auto;padding:22px 18px}.auth-brand{margin-bottom:16px}.auth-logo{width:104px}}
/* Recuperacion de contrasena */
.auth-main--recovery {
  padding-top: 72px;
  padding-bottom: 64px;
}

.auth-panel--recovery {
  width: min(430px, 100%);
}

.auth-heading--stacked {
  display: block;
  margin-bottom: 26px;
  text-align: left;
}

.auth-heading--stacked h1 {
  font-size: 26px;
  line-height: 1.2;
}

.auth-heading--stacked p {
  max-width: 420px;
}

.auth-links .fa-arrow-left {
  margin-right: 5px;
  font-size: 11px;
}

@media (max-width: 576px) {
  .auth-main--recovery {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .auth-heading--stacked {
    margin-bottom: 22px;
  }

  .auth-heading--stacked h1 {
    font-size: 23px;
  }
}

/* Preserve reference sizing against shared inventory styles. */
#main-content .auth-panel .auth-label{font-size:14px;line-height:1.2}
#main-content .auth-input{box-sizing:border-box;height:46px;min-height:46px}
#main-content .auth-toggle{padding:0;line-height:1}
@media(max-width:576px){#main-content .auth-input{font-size:16px}}
.auth-main--register{padding:40px 20px;min-height:auto}.register-panel{width:min(560px,100%)}.register-heading{border-bottom:1px solid #e5eaf2;padding-bottom:20px;margin-bottom:22px}.register-heading h1{color:#0b1b33;margin:0 0 8px}.register-heading p{color:#718096;font-size:14px;margin:0}.register-section{color:#61708a;font-size:13px!important;font-weight:600;letter-spacing:.4px;margin:0 0 18px}.register-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.register-grid>div{min-width:0}.register-panel .company-select-trigger{height:46px;border-color:#dbe3ee;font-size:14px}.register-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid #e5eaf2;padding-top:20px;margin-top:4px}.register-actions .auth-btn{width:auto;min-width:165px;padding:0 20px;height:42px;margin:0}.register-actions>a{height:42px;display:inline-flex;align-items:center;padding:0 20px;border:1px solid #dbe3ee;border-radius:6px;color:#61708a;font-size:14px;text-decoration:none}.register-actions>a:hover{background:#f5f7fb}@media(max-width:576px){.auth-main--register{padding:28px 16px}.register-grid{grid-template-columns:1fr;gap:0}.register-actions .auth-btn,.register-actions>a{flex:1;min-width:0;justify-content:center}.register-panel .company-select-trigger{font-size:16px}}

.signin-style-register .register-panel{width:min(390px,100%)}
.signin-style-register .register-grid{display:block}
.signin-style-register .auth-brand{margin-bottom:28px}
.signin-style-register .auth-btn{width:100%;height:48px}
@media(max-width:576px){.signin-style-register .register-panel{width:min(360px,100%)}}

.signin-style-register .register-panel{width:min(520px,100%)}
.signin-style-register .register-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:420px){.signin-style-register .register-grid{grid-template-columns:1fr;gap:0}}
