@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital@0;1&display=swap');
*{
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

body, html{ 
    margin: 0;
    padding: 0;
}

body{
    font-family: "Work Sans", sans-serif;
    font-size: 18px;
    font-weight: 400;
}

figure{
    margin: 0;
    padding: 0;
}

figure img{
    margin: 0;
    width: 100%;
}

/* Variables de colores */
:root {
    --color-primary: #8C5A3C;
    --color-claro: #FAF4EF;
    --color-black: #333333;
    --color-error: #ff5555;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
  }
  
  /* Reset general */
  
  body {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Contenedor principal */
  #inicio {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../images/virginia_arco_iris.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  #inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
  }
  
  #principal {
    width: 90%;
    max-width: 420px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--shadow-color);
    z-index: 2;
    position: relative;
  }
  
  /* Sección del logo */
  #logo {
    display: flex;
    justify-content: center;
  }
  
  #img {
    width: 180px;
    height: auto;
  }
  
  #img img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  /* Sección de información y formulario */
  #info {
    width: 100%;
  }
  
  .error {
    background-color: #fff;
    color: var(--color-error);
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: bold
  }
  
  form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  
  .campos {
    position: relative;
  }
  
  .campos input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(250, 244, 239, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    outline: none;
    font-size: 16px;
    color: var(--color-black);
    transition: all 0.3s ease;
  }
  
  .campos input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 8px rgba(204, 182, 155, 0.4);
  }
  
  .campos input::placeholder {
    color: transparent;
  }
  
  .campos label {
    position: absolute;
    left: 20px;
    top: 15px;
    color: #444;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .campos input:focus ~ label,
  .campos input:not(:placeholder-shown) ~ label {
    top: -17px;
    left: 5px;
    font-size: 14px;
    /* background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.8) 50%, rgba(255,255,255,0)); */
    padding: 0 6px;
    color: var(--color-claro);
    font-weight: 600;
  }
  
  #togglePassword {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 20px;
    transition: color 0.3s ease;
  }
  
  #togglePassword:hover {
    color: var(--color-primary);
  }
  
  form a {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    text-align: right;
    margin-top: 5px;
    display: block;
    transition: color 0.3s ease;
  }
  
  form a:hover {
    color: var(--color-black);
    text-decoration: underline;
  }
  
  .btn_entrar {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    letter-spacing: 0.5px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 182, 155, 0.4);
  }
  
  .btn_entrar:hover {
    background: #4A2E1D;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(204, 182, 155, 0.5);
  }
  
  .btn_entrar:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(204, 182, 155, 0.3);
  }
  
  /* Footer */
  footer{
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 3px;
}

footer p{
    margin: 0 0 2px 0;
    font-size: 10px;
    font-weight: 400;
    color: #000;
    text-align: center;
}
  
  /* Responsive */
  @media screen and (max-width: 480px) {
    #principal {
      padding: 30px 20px;
      width: 95%;
    }
    
    #img {
      width: 150px;
    }
  }