@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: auto;
  overflow-y: auto;

  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background-color: #F5F5F5;;              
}


/* ===== Fondo ===== */
.login-page {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #F5F5F5;
}

.login-bg {
  position: absolute !important; 
  inset: 0 !important;
  background-image: url("../imgs/Salud.jpg") !important; 
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transform: scale(1.03) !important;
  filter: blur(0px) !important;
  z-index: 0 !important;
}

.login-bg-forgot {
  background:grey;
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

.login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 70, 0.35);
}

.login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;  
  justify-content: flex-end; 
  padding-right: 120px;  
}

.login-wrap-center {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;  
  justify-content: center; 
  padding-top: 40px;
  padding-bottom: 40px;  
}

/* ===== Tarjeta "vidrio" ===== */
.login-card {
  width: 520px;
  max-width: 92vw;
  padding: 36px 40px 28px;
  border-radius: 16px;

  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);

  /* efecto vidrio */
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);

  box-shadow: 0 18px 55px rgba(0,0,0,0.25);
}

.login-card-2 {
  width: 520px;
  max-width: 92vw;
  padding: 36px 40px 28px;
  border-radius: 16px;
  position: relative;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.28);

  box-shadow: 0 18px 55px rgba(0,0,0,0.25);
}

.login-card-forbidden {
  width: 600px;
  max-width: 92vw;
  padding: 36px 40px 28px;
  border-radius: 16px;
  position: relative;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 18px 55px rgba(0,0,0,0.25);
}

/* ===== Header ===== */
.login-header {
  display: flex;
  flex-direction: column;  
  align-items: center;     
  text-align: center;  
}

.brand {
 height: 30px;
 margin-bottom: 30px;
}

.welcome {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.app-name {
  margin: 6px 0 0;
  font-size: 30px;
  color: #ffffff;
  letter-spacing: 1px;
}

.app-name-forgot {
  font-size: 26px;
  color: #1992d7;
  letter-spacing: 1px;
}

.app-name-change-pass {
  font-size: 30px;
  color: #1992d7;
  letter-spacing: 1px;
}

/* ===== Form ===== */
.login-form { margin-top: 14px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: semi-bold;
  font-size: 13px;
  color: black;
  margin: 0 0 8px;
}

/* inputs */
.field input {
  width: 100%;
  height: 46px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: rgba(255,255,255,0.95);
}

.field input:focus {
  border-color: rgba(0, 120, 190, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 120, 190, 0.15);
}

.user {
	display: flex;
	font-weight: 700 !important;	
    margin-bottom: 12px;
    font-size: 18px;
    color: #1992d7;
}

.readonly-as-text{
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  color: #1992d7 !important;
  font-weight: 700 !important;
  outline: none !important;
  font-size: 18px;
}


/* input con icono */
.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-right: 44px;
}

.input-with-icon {
  position: relative;
}

.input-with-icon .control {
  width: 100%;
  padding-right: 42px;
}

/* botón del ojito */
.icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);

  width: 22px;
  height: 22px;

  border: none;
  background-color: transparent;

  cursor: pointer;
  padding: 0;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;

  opacity: 0.7;
}

.icon-btn:hover {
  opacity: 1;
}


.icon-btn.active {
  background-image: url("../imgs/hide_password.png");
}



.forgot {
  display: inline-block;
  margin: 4px 0 16px;
  font-size: 12px;
  color: #00539B;
  text-decoration: underline;
}

.forgot:hover { text-decoration: none; }

.cancel {
  margin-top: 5px;
  font-size: 13px;
  color: #00539B;
  text-decoration: none;
}

.cancel:hover { text-decoration: underline; }

/* botón */
.btn-primary {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: #1992d7;;
  box-shadow: 0 10px 18px rgba(11, 119, 194, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* ===== Footer ===== */
.login-footer {
  text-align: center;
  margin-top: 18px;
}

.version {
  font-size: 12px;
  margin-bottom: 10px;
}

.brand2 {
 height: 60px;
}

.box {
  display: flex;
  flex-direction: column;  
  align-items: center;    
}

.messageForb{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F5f5f5;
    font-size: 13px;
    font-weight: 500;
    border-radius: 14px;
    color: black;
    margin-bottom: 10px;
}

.messageForb ul {
  margin: 0;
  padding: 20px 0;
}

.messageForb li {
  list-style: none;
  position: relative;
  padding: 20px 0;
}


.messageForb2{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F5f5f5;
    font-size: 13px;
    font-weight: 500;
    border-radius: 14px;
    color: black;
    margin-bottom: 10px;
    padding: 10px 0;
}

.messageForb2 ul {
  margin: 0;
}

.messageForb2 li {
  list-style: none;
  position: relative;
}

.messageChangePass{
    display: flex;
    flex-direction: column;
    background-color: #F5f5f5;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
    color: black;
    margin-bottom: 10px;
    line-height: 0.3;
    padding: 15px;
}

.login-alert__icon{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(11, 61, 115, 0.12);
  position: relative;
  flex: 0 0 26px;
}

.login-alert__icon:before{
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 0;
  height: 0;
  transform: translate(-50%, -55%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid #0b3d73;
}

.login-alert__icon:after{
  content: "!";
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-weight: 800;
  font-size: 12px;
  color: #ffffff;
}

.login-alert{
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  box-sizing: border-box;
}

.login-alert--hidden {
  display: none;
}


.change-password-alert{
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.change-password-alert__text p {
  position: relative;
  line-height: 0.8;
  font-size: 14px;
}


.change-password-alert__text p.invalid {
  color: #C92A2A;            
}

.change-password-alert__text p.valid {
  color: #74B816;              
}


.login-alert--info{
  background: #FAEAEA;
  border: 1px solid #8D1D1D;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.login-alert__head{
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-alert__icon{
  width: 28px;
  height: 28px;
  flex: 0 0 24px;
}

.login-alert__title{
  font-weight: 700;
  font-size: 16px;
  color: #8D1D1D;
}

.login-alert__text{
  font-size: 14px;
  line-height: 1.2;
  color: #8D1D1D;
  white-space: pre-line;
}

.change-password-alert__text{
  font-size: 14px;
  color: #8D1D1D;
}

.cancel {
  position: absolute !important;
  top: 10px;   
  right: 10px; 
  display: inline-block;
  text-decoration: none;
  z-index: 10;
}

.cancel-icon {
  width: 24px; 
  height: 24px; 
  cursor: pointer; 
}


/* ===== Responsive ===== */
@media (max-width: 770px) {
  .login-card { padding: 28px 22px 22px; }
  .login-wrap {  justify-content: center;   padding-right: 0px;}
  .brand { height: 24px; margin-bottom: 10px;}
  .app-name {  font-size: 24px;}
  .app-name-change-pass {  font-size: 24px;}
  .user {  font-size: 14px;}
  .readonly-as-text {  font-size: 14px;}
  .change-password-alert__text p {  font-size: 10px;}
  .login-alert__title {  font-size: 12px;}
  .btn-primary { height: 40px; font-size: 12px;  border-radius: 10px;}
  .messageChangePass {font-size: 11px; font-weight: 300;}
  .login-card-forbidden { width:auto; padding: 10px 30px 20px;}
}

@media (max-width: 480px) {
  .btn-primary { height: 36px; font-size: 11px;  padding: 8px 10px;} 
}
