*{
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    /*overflow: hidden;*/
}

.wave{
	position: fixed;
	bottom: 0;
	left: 0;
	height: 100%;
	z-index: -1;
}

.container{
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap :7rem;
    padding: 0 2rem;
}

.img{
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.login-content{
	display: flex;
	justify-content: flex-start;
	align-items: center;
	text-align: center;
}

.img img{
	width: 500px;
}

form{
	width: 360px;
}

.login-content img{
    height: 100px;
}

.login-content h2{
	margin: 15px 0;
	color: #333;
	text-transform: uppercase;
	font-size: 2.9rem;
}

.login-content .input-div{
	position: relative;
    display: grid;
    grid-template-columns: 7% 93%;
    margin: 25px 0;
    padding: 5px 0;
    border-bottom: 2px solid #d9d9d9;
}

.login-content .input-div.one{
	margin-top: 0;
}

.i{
	color: #d9d9d9;
	display: flex;
	justify-content: center;
	align-items: center;
}

.i i{
	transition: .3s;
}

.input-div > div{
    position: relative;
	height: 45px;
}

.input-div > div > h5{
	position: absolute;
	left: 10px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	font-size: 18px;
	transition: .3s;
}

.input-div:before, .input-div:after{
	content: '';
	position: absolute;
	bottom: -2px;
	width: 0%;
	height: 2px;
	background-color: #04a1fc;
	transition: .4s;
}

.input-div:before{
	right: 50%;
}

.input-div:after{
	left: 50%;
}

.input-div.focus:before, .input-div.focus:after{
	width: 50%;
}

.input-div.focus > div > h5{
	top: -5px;
	font-size: 15px;
}

.input-div.focus > .i > i{
	color: #04a1fc;
}

.input-div > div > input{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border: none;
	outline: none;
	background: none;
	padding: 0.5rem 0.7rem;
	font-size: 1.2rem;
	color: #555;
	font-family: 'poppins', sans-serif;
}
.input-div > div > select{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border: none;
	outline: none;
	background: none;
	padding: 0.5rem 0.7rem;
	font-size: 1.2rem;
	color: #555;
	font-family: 'poppins', sans-serif;
}

.input-div.pass{
	margin-bottom: 4px;
}

a{
	display: block;
	text-align: right;
	text-decoration: none;
	color: #999;
	font-size: 0.9rem;
	transition: .3s;
}

a:hover{
	color: #04a1fc;
}

.btn{
	display: block;
	width: 100%;
	height: 50px;
	border-radius: 25px;
	outline: none;
	border: none;
	background: #04a1fc;
	background-size: 200%;
	font-size: 1.2rem;
	color: #fff;
	font-family: 'Poppins', sans-serif;
	text-transform: uppercase;
	margin: 1rem 0;
	cursor: pointer;
	transition: .5s;
}
.btn:hover{
	background-position: right;
	background: #142e3d;
	color: wheat;
}


@media screen and (max-width: 1050px){
	.container{
		grid-gap: 5rem;
	}
}

@media screen and (max-width: 1000px){
	form{
		width: 290px;
	}

	.login-content h2{
        font-size: 2.4rem;
        margin: 8px 0;
	}

	.img img{
		width: 400px;
	}
}

@media screen and (max-width: 900px){
	.container{
		grid-template-columns: 1fr;
	}

	.img{
		display: none;
	}

	.wave{
		display: none;
	}

	.login-content{
		justify-content: center;
	}
}



.error{
    background: #FF3D3D;
    color: white;
}

.verPassword{
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    float: right;
    margin-top: -60px;
}
.view{
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    
    
}

/* --- Ajustes para el bloque PIN --- */
.input-div.is-pin .div h5{
  position: static !important;   /* que el título "PIN" no flote encima */
  transform: none !important;
  margin: 0 0 6px !important;
  color: #999;
}

/* Grupo de los 4 dígitos con el mismo “look” subrayado */
.pin-group{ display:flex; gap:16px; align-items:center; }

.pin-digit{
  width: 36px; height: 44px; text-align: center; font-size: 1.25rem;
  border: none; 
  border-bottom: 2px solid #d9d9d9;   /* igual que tus inputs originales */
  background: transparent; 
  color: #555;
  outline: none;
}

.pin-digit:focus{
  border-bottom-color: #04a1fc;   /* tu color de focus */
}

/* ======= Layout app (sidebar + contenido) ======= */
/*.app{ display:grid; grid-template-columns:240px 1fr; height:100vh; width:100vw; }*/
.app{
  display:grid;
  grid-template-columns:240px 1fr;
  min-height:100vh;   /* permite crecer si el contenido es más alto */
  height:auto;
 width:100%;         /* evita barras horizontales inesperadas */
}

.sidebar{
  background:#05895f; color:#e2e8f0; padding:20px;
  display:flex; flex-direction:column; gap:16px; z-index:21;
}
.sidebar .brand{ font-weight:600; font-size:1.1rem; }


/* Botón logout del sidebar (texto BLANCO) */
.btn-logout{
  margin-top:auto; display:block; text-align:center; padding:10px 12px;
  border-radius:12px; text-decoration:none;
  background:#020202; color:#fff !important; border:1px solid transparent;
  transition:filter .2s, opacity .2s;
}
.btn-logout:hover{ filter:brightness(1.05); opacity:.95; color:#fff !important; }

.content{ display:flex; flex-direction:column; background:#f7fafc; }

.topbar{
  height:56px; background:#13bb50; color:#e2e8f0;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 24px; border-bottom:1px solid rgba(255,255,255,.08); z-index:10;
}
.topbar-left{ display:flex; align-items:center; gap:10px; }
.top-title{ font-weight:600; }

.topbar-right{ position:relative; display:flex; align-items:center; gap:10px; }
.profile{ display:flex; align-items:center; gap:8px; background:transparent; border:0; cursor:pointer; color:#e2e8f0; }
.avatar{
  width:32px; height:32px; border-radius:50%;
  background:#2bdb6b; color:#fff; display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.9rem;
}
.chev{ font-size:14px; opacity:.8; }

.dropdown{
  position:absolute; right:0; top:44px; min-width:180px;
  background:#fff; color:#0f172a; border-radius:10px;
  box-shadow:0 10px 25px rgba(0,0,0,.15); padding:6px; display:none; z-index:25;
}
.dropdown.show{ display:block; }
.dropdown-item{ display:block; padding:10px 10px; border-radius:8px; color:#0f172a; text-decoration:none; }
.dropdown-item:hover{ background:#f1f5f9; }
.dropdown-item.danger{ color:#b91c1c; }
.dropdown-sep{ height:1px; background:#e5e7eb; margin:6px 0; }

.page-inner{ padding:24px; overflow:auto; }

/* ======= Hamburguesa + off-canvas ======= */
.hamburger{
  width:36px; height:36px; display:inline-flex; flex-direction:column; justify-content:center; gap:6px;
  background:transparent; border:0; cursor:pointer;
}
.hamburger span{ display:block; height:2px; width:22px; background:#e2e8f0; }

/* Fondo oscuro cuando el sidebar está abierto en móvil */
.backdrop{ display:none; }

/* --- Móvil: sidebar oculto (off-canvas) --- */
@media screen and (max-width: 900px){
  .app{ grid-template-columns:1fr; }
  .sidebar{
    position:fixed; left:0; top:0; height:100vh; width:240px;
    transform:translateX(-100%); transition:transform .25s ease; box-shadow:0 10px 30px rgba(0,0,0,.35);
  }
  .backdrop{
    position:fixed; inset:0; background:rgba(0,0,0,.35); z-index:20; display:none;
  }
  .app.sidebar-open .sidebar{ transform:translateX(0); }
  .app.sidebar-open .backdrop{ display:block; }
}

/* --- Escritorio: sidebar fijo; ocultar hamburguesa y backdrop --- */
@media screen and (min-width: 901px){
  .hamburger{ display:none; }
  .backdrop{ display:none !important; }
}

/* ===== Cards de acciones rápidas ===== */
.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.card-action{
  display: block;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card-action:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.card-icon{
  width: 44px; height: 44px; border-radius: 10px;
  background: #e6f2ff; display:flex; align-items:center; justify-content:center;
  margin-bottom: 10px;
}
.card-icon i{ font-size: 1.2rem; color: #04a1fc; }
.card-title{ font-weight: 600; margin-bottom: 4px; }
.card-desc{ color: #6b7280; font-size: .95rem; }
/* Sidebar con iconos */
/* ===== Sidebar con estilo tipo “píldora” en todos los items ===== */
.menu{ display:grid; gap:10px; margin-top:10px; }

/* Base para TODOS los items */
.menu-item{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:12px;
  text-decoration:none;
  color:#e2e8f0;
  background: rgba(255,255,255,.06);             /* píldora gris azulada */
  border: 1px solid rgba(255,255,255,.08);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  line-height:1.15;
}

/* Icono a la izquierda */
.menu-item i{
  width:18px; text-align:center; opacity:.9; color:#e2e8f0;
}

/* Hover (levemente más claro) */
.menu-item:hover{
  background: rgba(255,255,255,.12);
}

/* Activo (igual que Home) */
.menu-item.active{
  background:#3cc54e; 
  color:#fff; 
  border-color: transparent;
}
.menu-item.active i{ color:#fff; opacity:1; }

/* Por si los textos son largos y saltan de línea, que se vean bonitos */
.menu-item span{
  white-space:normal; word-break:break-word;
}

/* === Layout fijo: sidebar + topbar; scroll solo en el contenido === */
html, body { height: 100%; }

/* El scroll global lo apagamos; vivirá dentro de .page-inner */
body { overflow: hidden; }

/* La app ocupa la altura de la ventana */
.app{
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100vh;
  width: 100%;
}

/* Sidebar fija a la izquierda con su propio scroll si crece */
.sidebar{
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  /* z-index alto por seguridad */
  z-index: 21;
}

/* Columna de contenido: topbar fija + área que scrollea */
.content{
  display: flex;
  flex-direction: column;
  height: 100vh;     /* clave para que .page-inner tenga alto finito */
  overflow: hidden;  /* el scroll va en .page-inner */
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 30;       /* por encima de la tabla */
}

/* Aquí vive el scroll de la página */
.page-inner{
  flex: 1 1 auto;
  overflow: auto;    /* ¡scroll aquí! */
  min-height: 0;     /* necesario para que overflow funcione en flex */
}

/* Móvil: tu sidebar off-canvas sigue siendo fixed */
@media (max-width: 900px){
  .sidebar{ position: fixed; }
}

/* ===== Layout fijo: desktop ===== */
html, body { height: 100%; }
body { overflow: hidden; }                  /* el scroll vive en .page-inner */
.app{
  display:grid;
  grid-template-columns: 240px 1fr;         /* 2 columnas solo en desktop */
  height:100vh;
  width:100%;
}
.sidebar{
  position: sticky; top:0; height:100vh; overflow-y:auto; z-index:21;
}
.content{
  display:flex; flex-direction:column; height:100vh; overflow:hidden;
}
.topbar{ position: sticky; top:0; z-index:30; }
.page-inner{
  flex:1 1 auto; overflow:auto; min-height:0; -webkit-overflow-scrolling:touch;
}

/* ===== Responsive: móvil (sidebar off-canvas, 1 columna) ===== */
@media (max-width: 900px){
  .app{ grid-template-columns: 1fr; }       /* <-- clave: 1 sola columna */
  .sidebar{
    position: fixed; left:0; top:0; height:100vh;
    width: 260px; max-width: 86vw;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
  }
  .app.sidebar-open .sidebar{ transform: translateX(0); }

  .backdrop{
    position:fixed; inset:0; background:rgba(0,0,0,.35);
    z-index:20; display:none;
  }
  .app.sidebar-open .backdrop{ display:block; }
}

/* (opcional) evitar desbordes horizontales por barras/100vw */
html, body { overflow-x: hidden; }

/* Mantener el ancho estable cuando aparece el scrollbar interno */
.page-inner{
  scrollbar-gutter: stable !important;            /* reserva el gutter del scroll */
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Alinea visualmente topbar con el mismo “gutter” que page-inner */
.topbar{
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* mismo padding en topbar y contenido */
:root{ --gutter: 24px; }

.topbar{
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* el scroll vive aquí; reserva el gutter para que no “achique” el ancho */
.page-inner{
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  overflow: auto;
  min-height: 0;
  scrollbar-gutter: stable;          /* <-- clave */
}
