*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body{
background:linear-gradient(135deg,#667eea,#764ba2);
min-height:100vh;
display:flex;
flex-direction:column;
}

/* HEADER UNIFORME PARA TODAS LAS PÁGINAS */
header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 40px;
  background:rgba(255,255,255,0.1);
  backdrop-filter:blur(10px);
  color:white;
  flex-wrap:wrap; /* para móvil */
  min-height:70px; /* asegura mismo tamaño */
}

header h2{
  font-size:24px;
  margin:0;
}

header .login-btn,
header nav{
  display:flex;
  gap:10px;
}

header a{
  text-decoration:none;
  color:white;
  background:#ffffff22;
  padding:8px 16px;
  border-radius:6px;
  transition:0.3s;
}

header a:hover{
  background:#ffffff40;
}

/* CONTENEDOR CENTRAL */

.container{
flex:1;
display:flex;
justify-content:center;
align-items:center;
padding:20px;
}

/* CARD LOGIN */

.card{
background:white;
padding:40px;
border-radius:12px;
width:100%;
max-width:400px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
}

.card h2{
text-align:center;
margin-bottom:25px;
color:#333;
}

/* FORMULARIOS */

form{
display:flex;
flex-direction:column;
}

input{
padding:12px;
margin-bottom:15px;
border:1px solid #ddd;
border-radius:6px;
font-size:14px;
}

input:focus{
outline:none;
border-color:#667eea;
}

button{
padding:12px;
border:none;
border-radius:6px;
background:#667eea;
color:white;
font-size:15px;
cursor:pointer;
transition:0.3s;
}

button:hover{
background:#5563d6;
}

/* SEPARADOR */

.divider{
text-align:center;
margin:20px 0;
color:#888;
}

/* MENSAJES */

.error{
color:red;
text-align:center;
margin-top:10px;
}

.success{
color:green;
text-align:center;
}

/* RESPONSIVE */

@media (max-width:500px){

header{
    flex-direction:column;
    align-items:center;
    gap:10px;
  }
  header .login-btn a,
  header nav a{
    width:100%;
    text-align:center;
    margin:0;
  }

.card{
padding:25px;
}

}

/* ============================= */
/* HAMBURGER MÓVIL */
/* ============================= */

.hamburger{
  position:absolute;
  font-size:28px;
  cursor:pointer;
  background:#ffffff22;
  padding:8px 14px;
  border-radius:6px;
  display:none;
  z-index:1100;
}

.top-right{
  top:20px;
  right:20px;
}

.top-left{
  top:20px;
  left:20px;
}

/* ===== MENÚ ===== */

.mobile-menu{
  position:fixed;
  top:0;
  width:260px;
  height:100vh;
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(10px);
  padding:80px 20px;
  display:flex;
  flex-direction:column;
  gap:15px;
  transition:0.3s ease;
  z-index:1001;
}

.from-right{ right:-260px; }
.from-right.active{ right:0; }

.from-left{ left:-260px; }
.from-left.active{ left:0; }

.mobile-menu a{
  background:#667eea;
  color:white;
  padding:12px;
  border-radius:6px;
  text-align:center;
  text-decoration:none;
}

/* ===== OVERLAY ===== */

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);
  backdrop-filter:blur(3px);
  opacity:0;
  pointer-events:none;
  transition:0.3s;
  z-index:1000;
}

.overlay.active{
  opacity:1;
  pointer-events:auto;
}

/* ===== DESHABILITADO ===== */

.hamburger.is-disabled{
  opacity:0.4;
  pointer-events:none;
}

.mobile-menu.is-disabled{
  display:none;
}

/* ===== RESPONSIVE ===== */

@media (max-width:768px){
  .hamburger{ display:block; }
  .desktop-menu{ display:none; }
}