/* style.css
   Estilos globales y de login
   (sin nada de contenidos_capacitacion.php) */

/* Importar tipografía */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

/* Reset y fuente global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Fondo y evitar scroll horizontal */
body {
  background: #e4e9f7;
  overflow-x: hidden;
}

/* =======================
   NAVBAR
   ======================= */
nav {
  background: linear-gradient(to top right, #004f2d, #00a99d);
  color: #FFFFFF;
  padding: 60px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 180px;
  height: auto;
}

/* PERFIL DEL USUARIO */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
}

/* DROPDOWN */
.dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: white;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 5px;
  padding: 5px 0;
  min-width: 150px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

/* =======================
   LOGIN LAYOUT
   ======================= */
.login-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  width: 100%;
}

.login-container {
  background: white;
  border-radius: 10px;
  padding: 20px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: relative;
}

.login-container img {
  width: 200px;
  margin-bottom: 15px;
  max-width: 100%;
}

/* Campos de entrada */
.field {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 15px;
}

.field label {
  font-weight: 500;
  margin-bottom: 5px;
}

.field input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

/* BOTÓN LOGIN */
.btn-login {
  background-color: #059F91;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  font-weight: bold;
}
.btn-login:hover {
  background-color: #028C80;
}

/* FOOTER LOGO */
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}
.footer-logo img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

/* MENSAJES */
.message_error,
.message_succed,
.message_alert {
  text-align: center;
  padding: 15px 20px;
  border-radius: 5px;
  margin-top: 10px;
  font-weight: bold;
}
.message_error {
  background: #f9eded;
  border: 1px solid #89271c;
  color: red;
}
.message_succed {
  background: #edf9ef;
  border: 1px solid #1c8940;
  color: rgb(27,89,0);
}
.message_alert {
  background: #f5e2cf;
  border: 1px solid #895f1c;
  color: rgb(126,55,4);
}

/* ===== RESPONSIVE LOGIN ===== */
@media screen and (max-width: 480px) {
  .login-container {
    width: 90%;
    padding: 20px;
  }
  .field input {
    font-size: 14px;
    padding: 8px;
  }
  .btn-login {
    font-size: 14px;
    padding: 8px;
  }
  .footer-logo img {
    max-width: 250px;
  }
}
@media screen and (max-width: 768px) {
  .login-container {
    width: 80%;
    padding: 25px;
  }
  .footer-logo img {
    max-width: 280px;
  }
}
@media screen and (min-width: 1024px) {
  .login-container {
    width: 400px;
  }
}
