 body {
    font-family: 'Roboto', sans-serif;
     background-color: #f4f4f4;
     height: 100vh;
     margin: 0;
 }
 
/* Fondo que contiene los documentos */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Estilos generales de los documentos médicos */
.medical-document {
    position: absolute;
    width: 70px;
    height: 100px;
    background-color: rgba(138, 162, 200, 0.1);
    border-radius: 5px;
    border: 2px solid rgba(138, 162, 200, 0.3);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    font-size: 8px;
    color: rgba(0, 0, 0, 0.3);
    transform-origin: center;
    animation: float 4s infinite ease-in-out;
}

/* Figura del sujetapapeles */
.medical-document::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 28px;
    height: 12px;
    background-color: rgba(55, 76, 128, 0.8);
    border-radius: 6px;
    transform: translateX(-50%);
}

/* Línea de pulso en el centro */
.medical-document::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 6px;
    background: none;
    border-top: 3px solid rgba(82, 113, 255, 0.6);
    clip-path: polygon(
        0% 50%, 10% 40%, 20% 60%, 30% 30%, 40% 80%, 
        50% 20%, 60% 70%, 70% 50%, 80% 30%, 90% 60%, 100% 50%
    );
}

.medical-document .linea-azul {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 6px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20'%3E%3Cpath d='M0,10 H30 L40,2 L50,18 L60,5 L70,10 H100 L110,2 L120,18 L130,5 L140,10 H200' stroke='%230066ff' stroke-width='4' fill='transparent'/%3E%3C/svg%3E") repeat-x;
    background-size: contain;
    transform: translateY(-50%);
}



/* Líneas de notas en la parte inferior */
.medical-document .notes {
    position: absolute;
    bottom: 8px;
    left: 10%;
    width: 80%;
}

.medical-document .notes div {
    width: 100%;
    height: 2px;
    background-color: rgba(82, 113, 255, 0.6);
    margin: 3px 0;
    border-radius: 2px;
}

/* Animación flotante */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0px); }
}

/* Posiciones dispersas */
.medical-document:nth-child(1) { top: 10%; left: 15%; transform: rotate(-8deg); }
.medical-document:nth-child(2) { top: 75%; left: 55%; transform: rotate(12deg); }
.medical-document:nth-child(3) { top: 20%; left: 65%; transform: rotate(-18deg); }
.medical-document:nth-child(4) { top: 30%; left: 35%; transform: rotate(6deg); }
.medical-document:nth-child(5) { top: 45%; left: 85%; transform: rotate(-14deg); }
.medical-document:nth-child(6) { top: 85%; left: 75%; transform: rotate(8deg); }
.medical-document:nth-child(7) { top: 95%; left: 25%; transform: rotate(-6deg); }
.medical-document:nth-child(8) { top: 70%; left: 5%; transform: rotate(18deg); }


 header {
    width: 100%;
    height: 72px;
    background-color: #34CC67;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h2 {
    margin-left: 20px;
    font-size: 25px;
    color: #ffffff;
}
.caja-1{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    height: 90%;
}


 /* Estilos del formulario de login */
.login-form {
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 320px;
    position: relative;
    overflow: hidden;
}

/* Contenedor del borde animado */
.login-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px solid transparent;
    box-sizing: border-box;
    pointer-events: none; /* Para que no afecte la interacción */
    animation: borderAnimation 4s linear infinite;
}

/* Animación de la línea recorriendo el borde */
@keyframes borderAnimation {
    0% {
        border-image: linear-gradient(90deg, #00c8ff 0%, transparent 100%);
        border-image-slice: 1;
    }
    25% {
        border-image: linear-gradient(180deg, #00c8ff 0%, transparent 100%);
        border-image-slice: 1;
    }
    50% {
        border-image: linear-gradient(270deg, #00c8ff 0%, transparent 100%);
        border-image-slice: 1;
    }
    75% {
        border-image: linear-gradient(360deg, #00c8ff 0%, transparent 100%);
        border-image-slice: 1;
    }
    100% {
        border-image: linear-gradient(90deg, #00c8ff 0%, transparent 100%);
        border-image-slice: 1;
    }
}

 
 .login-form1 {
    display: block;
    background: #fff;
    padding: 5px;
    border-radius: 100%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    max-height: 300px;
}

 img{
    width: 100%;
    border-radius: 100%;
    height: 100%;
 }

 .login-form h2 {
     margin-bottom: 20px;
     font-size: 24px;
     text-align: center;
 }
 
 p{
    color: #333;
 }

 .login-form input {
    width: 93%;
    padding: 10px;
    margin-bottom: 15px;
    border: none; /* Elimina todos los bordes */
    border-bottom: 2px solid #cccccc; /* Agrega solo la línea inferior */
    border-radius: 0; /* Evita esquinas redondeadas */
    outline: none; /* Evita el borde azul en algunos navegadores al hacer clic */
    font-size: 16px;
    background: transparent; /* Mantiene un fondo limpio */
    transition: border-bottom 0.3s ease-in-out; /* Efecto suave */
}

/* Efecto al hacer clic */
.login-form input:focus {
    border-bottom: 2px solid #28a745; /* Color más llamativo al enfocar */
}

 .login-form button {
     width: 100%;
     padding: 10px;
     background: linear-gradient(135deg, #28a745 0%, #00c8ff 100%);
     color: #fff;
     border: none;
     border-radius: 10px;
     cursor: pointer;
 }

 .login-form button:hover {
     background-color: #218838;
 }

 .error {
     color: red;
     margin-bottom: 15px;
     text-align: center;
 }

 @media (max-width: 768px) {
    .caja-1{
        display: grid;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 90%;
    }
    .login-form1 {
        display: none;
    }
 }
