body.login{
    background-color:#333;
}
/* Estilo moderno tipo Apple para el formulario de login */
#loginform {
    width: 360px;
    max-width: 90vw;
    margin: 50px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Contenedores de campos */
#loginform p {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    position: relative;
}

#loginform p:last-child {
    margin-bottom: 0;
}

/* Etiquetas */
#loginform label {
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

/* Inputs de texto y contraseña */
#loginform .input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
    font-family: inherit;
    color: #1d1d1f;
    box-sizing: border-box;
}

#loginform .input:focus {
    outline: none;
    border-color: #b6c931;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(182, 201, 49, 0.1);
}

#loginform .input::placeholder {
    color: #86868b;
}

/* Checkbox y label para "Recuérdame" */
#loginform .login-remember {
    flex-direction: row;
    align-items: center;
    margin-bottom: 32px;
}

#loginform .login-remember label {
    margin-bottom: 0;
    margin-left: 12px;
    font-size: 14px;
    font-weight: 400;
    color: #515154;
    cursor: pointer;
    display: flex;
    align-items: center;
}

#loginform #rememberme {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #b6c931;
}

/* Botón de envío */
#loginform .button {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #b6c931 0%, #9db028 100%);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
    box-sizing: border-box;
}

#loginform .button:hover {
    background: linear-gradient(135deg, #9db028 0%, #849720 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(182, 201, 49, 0.3);
}

#loginform .button:active {
    transform: translateY(0);
}

/* Estados de error/validación */
#loginform .input:invalid {
    border-color: #ff3b30;
}

#loginform .input:invalid:focus {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
    #loginform {
        margin: 20px auto;
        padding: 30px 20px;
        width: calc(100vw - 40px);
    }
    
    #loginform .input,
    #loginform .button {
        font-size: 16px; /* Evita el zoom en iOS */
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#loginform {
    animation: fadeInUp 0.6s ease-out;
}